10.8.5 AsDisplayString
AsDisplayString returns the supplied date formatted using one of the available supplied date formats
Input Parameters
Format - Required format of the data. Note that the month is multilingual. SYSFMT dates are in operating system format.
Available formats, and the resulting display string are listed below. Examples use a date of 2004-12-31.
See |
Format |
Display String |
|
CCYYDDMM |
20043112 |
|
CCYYMM |
200412 |
|
CCYYMMDD |
20041231 |
|
CCYYsDDsMM |
2004/31/12 |
|
CCYYsMMsDD |
2004/12/31 |
|
Fri |
Fri |
|
DDDDDDDDD |
Friday |
|
DDMMCCYY |
31122004 |
|
DDMMMCCYY |
31Dec2004 |
|
DDMMMYY |
31Dec04 |
|
DDMMYY |
311204 |
|
DDsMMsCCYY |
31/12/2004 |
|
DDsMMsYY |
31/12/04 |
|
DDXXbMMMMMMMMMbCCYY |
31st December 2004 |
|
DDXXbMMMMMMMMMbYY |
31st December 04 |
|
ISO |
2004-12-31 |
1 |
ML_DDDDDDDDD |
Friday |
1 |
ML_DDbMMMMMMMMMbYY |
31 December 04 |
1 |
ML_DDbMMMMMMMMMbCCYY |
31 December 2004 |
|
MMCCYY |
122004 |
|
MMDDCCYY |
12312004 |
|
MMDDYY |
123104 |
1 |
MMMMMMMMMM |
December |
|
MMsDDsCCYY |
12/31/2004 |
|
MmsDDsYY |
12/31/04 |
|
MMYY |
1204 |
|
SYSFMT6 |
311204 |
|
SYSFMT8 |
31122004 |
|
XYYMMDD |
20043112 |
|
YYMM |
0412 |
|
YYMMDD |
041231 |
|
YysMMsDD |
04/12/31 |
Example
#Com_owner.Caption := #Today.AsDisplayString(DDMMCCYY)
Also see