Previous topic

DT_GetYear

Next topic

DT_SetDate

This Page

DT_ParseDateTimeΒΆ

DT_ParseDateTime parses a date/time string and returns a real number.

rmDateTime = DT_ParseDateTime(smDateTime)

Return Value

rmDateTime is a real matrix representing the date/time value. In case of an error the value is -1.0e6 (-1000000.0)

Parameters

smDateTime

smDateTime is a string matrix with date/time strings.

Comment

For more information about the DT_-functions see DT_GetCurrentTime.

Example

* DT_SetLocale(0x0407) // German
* DT_ParseDateTime(["1.1.1998"; "24.12.2000"; "24.12.2000 18:00:00"])
35796.0000
36884.0000
36884.7500

* DT_ParseDateTime(["1.1.02"; "1.1.2002"])
37257.0000
37257.0000

id-834798