Algosim documentation: IsValidDatetime

IsValidDatetime

Validates a datetime structure.

Syntax

Description

If t is a DateTime structure, then IsValidDatetime(t) returns true if t represents a valid point in time and false otherwise.

Examples

IsValidDatetime(datetime(2010, 06, 02, 14, 20, 00))
true
IsValidDatetime(datetime(2010, 06, 02, 14, 20, −2))
false

See also