Datetime Intrinsic Functions - AsNumber Method

Return the variable as a number

Member of Datetime Intrinsic Functions (PRIM_LIBI.IDateTimeIntrinsics)

Parameters

NameTypeData TypeDescription
Result*Result (Optional)DecimalResulting number
Format*InputEnumerationFormat of the number

Details

AsNumber will convert a variable to a number. If the variable contains characters that cannot be converted, the application will end with a run time error.

Example

In this exmaple the result will be a numeric representation of the date time
#Result := #Variable.AsNumber(CCYYMMDDHHMMSS)

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2