syntax:functions:format
This is an old revision of the document!
Format(date_as_number, format)
Converts date_as_number into a text string according to format.
Example | Result |
---|---|
format(41640,'yyyyMMdd') | '20140101' |
format(41640,'yy-MM-dd') | '14-01-01' |
Format string components
Case-sensitive.
Character | Description |
---|---|
d | The day of the month, from 1 through 31. |
dd | The day of the month, from 01 through 31. |
ddd | The abbreviated name of the day of the week. |
M | The month, from 1 through 12. |
MM | The month, from 01 through 12. |
MMM | The abbreviated name of the month. |
MMMM | The full name of the month. |
y | The year, from 0 to 99. |
yy | The year, from 00 to 99. |
yyyy | The year as a four-digit number. |
See also
syntax/functions/format.1422818855.txt.gz · Last modified: 2015/02/01 14:27 by dmitry