Format Date

Formats a date and time into text.

Score
Type
InterActivity
Expertise
5/5
Type
InterActivity
Expertise

Action Information

Parameters

Format [Date]

Date Format: [None/Short/Medium/Long/Relative/RFC 2822/ISO 8601/Custom]
Time Format: [None/Short/Medium/Long/Relative]

Relative
Alternate Format: [Short/Medium/Long]

ISO 8601:
Include ISO 8601 Time: [Toggle]

Custom:
Format String: EEE, dd MMM yyyy HH:mm:ss Z

Input

Dates

Result

Text

Details

Type
Interactivity
Expertise Needed
Matthew's Score
5/5
Category
Date Added
11/12/2014
Identifier
is.workflow.actions.format.date

Notes

Custom format strings use the format patterns from Unicode Technical Standard #35 (unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns).

Works Well With

shortcuts-action-icon-wait.webp
Wait
Waits for the specified number of seconds before continuing with the next action.
Date
Passes the specified date and time to the next action.
Get Dates from Input
Returns any dates found in the output from the previous action.
Get Time Between Dates
Subtracts the specified date from the date passed into the action. For example, this action could get the number of minutes from now until a calendar event passed in as input.

Shortcuts Using This

shortcut-screencap-icon.png
Screencap
Takes a screenshot, reformat the name to the style used on macOS, then saves it to /Shortcuts/Screenshots/ in iCloud Drive.
shortcut-take-window-screenshot-icon.png
Take window screenshot
Takes a full window screenshot and leaves out the background.
shortcut-check-the-weather-forecast-icon.png
Check the weather forecast
Displays the temperature in conditions between 7 AM and 7 PM for the next 24 hours.