10.9.4 AsNumber
AsNumber returns the supplied datetime, formatted as specified, as a number.
Input Parameters
Format - Required format of the datetime
Available formats, and the resulting numbers are listed below. Examples use a date of 2004-12-31.
Format |
Display String |
CCYYDDMMHHMMSS |
20043112123456 |
CCYYMMDDHHMMSS |
20041231123456 |
HHMMSSDDMMCCYY |
12345631122004 |
HHMMSSDDMMYY |
123456311204 |
Example
#Com_owner.Caption := #Today.AsNumber(CCYYDDMM)
See Input Parameters for the available formats and the resultant strings.
Ý 10.9 DateTime Intrinsic Functions