Custom date formats in Shortcuts on Mac
Despite all the predefined date formatting options, you may want to craft a format specific to your needs. You can create a custom date format by choosing Custom in the Format Date action. An additional Format String text field is displayed, allowing you to enter a format string that consists of a pattern of special characters.
Note: For custom format strings, Shortcuts uses the patterns defined by the Unicode Technical Standard #35. For more information, see Date Format Patterns.
The following table lists a summary of example format strings and their results.
1996.07.10 AD at 15:08:56 PDT
Wed, 10 July '96
12 o'clock pm, Pacific Daylight Time
0:00 pm, PST
Tip: Custom patterns can include special characters like
/ in between the date characters. You can also include custom text in the custom patterns by placing single quotes around the string (see the word 'at' in the first table entry, above).