Skip to main content

Custom Date and Time Format


Custom date and time format in autonumber field

View more details

Format specifierDescription
dThe day of the month, from 1 to 31.
ddThe day of the month, from 01 to 31.
dddThe abbreviated name of the day of the week.
ddddThe full name of the day of the week.
hThe hour, using a 12-hour clock from 1 to 12.
hhThe hour, using a 12-hour clock from 01 to 12.
HThe hour, using a 24-hour clock from 0 to 23.
HHThe hour, using a 24-hour clock from 00 to 23.
mThe minute, from 0 to 59.
mmThe minute, from 00 to 59.
MThe month, from 1 to 12.
MMThe month, from 01 to 12.
MMMThe abbreviated name of the month.
MMMMThe full name of the month.
sThe second, from 0 to 59.
ssThe second, from 00 to 59.
ttThe AM/PM designator.
yThe year, from 0 to 99.
yyThe year, from 00 to 99.
yyyThe year, with a minimum of three digits.
yyyyThe year as a four-digit number.
yyyyyThe year as a five-digit number.

Custom date format in date field

Format specifierDisplay
YearYY70 71 ... 29 30 (last two digits of the year)
YYYY1970 1971 ... 2029 2030
MonthM1 2 ... 11 12
MM01 02 ... 11 12
MMMJan Feb ... Nov Dec
MMMMJanuary Febrary ... November December
Days in a monthD1 2 ... 30 31
DD01 02 ... 30 31
Days in a yearDDD1 2 ... 364 365
DDDD001 002 ... 364 365
Days in a weekd0 1 ... 5 6
dddSun Mon ... Fri Sat
ddddSunday Monday ... Friday Saturday
E1 2 ... 6 7
Weeks in a yearw1 2 ... 52 53
ww01 02 ... 52 53
QuarterQ1 2 3 4
AM/PMAAM PM

Display the date in the specified language format

The format rules MMM/MMMM/ddd/dddd can be displayed in different forms depending on the current user's language preference. For instance, if you wish to present it in English style, you can append #EN# to the format rule.

Take the date June 20, 2024, as an example, with the format rule YY-MMM-DD. Depending on the system language of different accounts, it will be displayed as follows:

  • 中文: 24-6月-20
  • 日本語: 24-6月-20
  • English: 24-Jun-20

If you set it to be displayed in the English format YY-MMM-DD#EN#, it will consistently show as 24-Jun-20, regardless of the system language.


Have questions about this article? Send us feedback