10.8.6 AsNumber
AsNumber returns the supplied date, formatted as specified, as a number.
Input Parameters
Format - Required format of the data
Available formats, and the resulting display string are listed below. Examples use a date of 2004-12-31.
|
Format |
Display Number |
|
CCYYDDMM |
20043112 |
|
CCYYMM |
200412 |
|
CCYYMMDD |
20041231 |
|
DAYS |
731945 |
|
DDMMCCYY |
31122004 |
|
DDMMYY |
311204 |
|
MMCCYY |
122004 |
|
MMDDCCYY |
12312004 |
|
MMDDYY |
123104 |
|
MMYY |
1204 |
|
SYSFMT6 |
311204 |
|
SYSFMT8 |
31122004 |
|
XYYMMDD |
20043112 |
|
YYMM |
412 |
|
YYMMDD |
41231 |
Example
#Com_owner.Caption := #Today.AsNumber(CCYYDDMM)
Also see