Raycast Manual
Raycast Manual

Reference for supported alphabets in custom date format

The following table contains the alphabets which can use in your custom date format inside the double quotes and what would they look like when the Snippet is inserted. The output is based on the time June 15th, 2022 2:45 PM UTC.

ℹ️
Please note that all letters within the double quotes are case sensitive.
Alphabets
Output
Description
YEAR
y
2022
Year, no padding
yy
22
Year, two digits (padding with a zero if necessary)
yyyy
2022
Year, minimum of four digits (padding with zeros if necessary)
QUARTER
Q
2
The quarter of the year. Use QQ if you want zero padding.
QQQ
Q2
Quarter including "Q”
QQQQ
2nd quarter
Quarter spelled out
MONTH
M
6
The numeric month of the year. A single M will use '6' for June.
MM
06
The numeric month of the year. A double M will use '06' for June.
MMM
Jun
The shorthand name of the month
MMMM
June
Full name of the month
MMMMM
J
Narrow name of the month
DAY
d
15
The day of the month. A single d will use 1 for June 1st.
dd
15
The day of the month. A double d will use 01 for June 1st.
F
3
(numeric) The day of week in month.
E
Wed
The abbreviation for the day of the week
EEEE
Wednesday
The wide name of the day of the week
EEEEE
W
The narrow day of week
EEEEEE
We
The short day of week
HOUR
h
2
The 12-hour hour.
hh
02
The 12-hour hour padding with a zero if there is only 1 digit
H
14
The 24-hour hour.
HH
14
The 24-hour hour padding with a zero if there is only 1 digit.
a
PM
AM / PM for 12-hour time formats
MINUTE
m
45
The minute, with no padding for zeroes.
mm
45
The minute with zero padding.
SECOND
s
6
The seconds, with no padding for zeroes.
ss
06
The seconds with zero padding.
SSS
753
The milliseconds.
TIME ZONE
zzz
IST
The 3 letter name of the time zone. Falls back to GMT-08:00 (hour offset) if the name is not known.
zzzz
Indian Standard Time
The expanded time zone name, falls back to GMT-08:00 (hour offset) if name is not known.
ZZZZ
IST+05:30
Time zone with abbreviation and offset
Z
+0530
RFC 822 GMT format. Can also match a literal Z for Zulu (UTC) time.
ZZZZZ
+05:30
ISO 8601 time zone format

You can read more about date format patterns here: https://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns

SlackXInstagram