Date and time formats
Date and time format strings define text representation of a date/time value for a Date/Time form field.
jQuery date/time format specifiers
A date format may consist of any combination of format specifiers and literal text described in the following table.
Format specifier | Description | Examples |
---|---|---|
|
The day of the month, from 1 through 31. |
6/1/2009 1:45:30 PM -> 1 |
|
The day of the month, from 01 through 31. |
6/1/2009 1:45:30 PM -> 01 |
|
The day of the year, from 1 through 365. |
6/1/2009 1:45:30 PM -> 152 |
|
The day of the year, from 001 through 365. |
2/15/2009 1:45:30 PM -> 046 |
|
The abbreviated name of the day of the week. |
6/15/2009 1:45:30 PM -> Mon (en-US) |
|
The full name of the day of the week. |
6/15/2009 1:45:30 PM -> Monday (en-US) |
|
The month of the year 1 through 12. |
6/1/2009 1:45:30 PM -> 6 |
|
The month of the year 01 through 12. |
6/1/2009 1:45:30 PM -> 06 |
|
The abbreviated name of the month. |
6/15/2009 1:45:30 PM -> Jun (en-US) |
|
The full name of the month. |
6/15/2009 1:45:30 PM -> June (en-US) |
|
The year two digits. |
6/1/2009 1:45:30 PM -> 09 |
|
The year four digits. |
6/1/2009 1:45:30 PM -> 2009 |
|
Unix timestamp (milliseconds since 01/01/1970). |
6/1/2009 1:45:30 PM -> 1243863930000 |
|
Windows ticks (100 nanaseconds since 01/01/0001. |
6/1/2009 1:45:30 PM -> 3.42131313e+16 |
|
Delimits literal text. |
m-d-yy 'C.E.' -> 6-1-2009 C.E. |
|
Single quote. |
Don''t -> Don't |
|
Literal text. | Start -> Start |