Number Intrinsic Functions - AsDateTime Method
Return a number as a datetime
Member of Number Intrinsic Functions (PRIM_LIBI.INumberIntrinsics)
Parameters
Name | Type | Data Type | Description |
|---|---|---|---|
Result | *Result (Optional) | DateTime | Resulting datetime |
Format | *Input (Optional) | Enumeration | Format of the datetime |
Details
AsDateTime will return a datetime based on the value of the number and the specified format.
If the supplied value does not conform to the required format, the application will end with a run-time error. Use the IsDatetime intrinsic to test the value before attempting to convert to a datetime.