NAME
IsDatetime — Check whether given string matches the set datetime format.
SYNOPSIS
IsDatetime StringValue
DESCRIPTION
Return Value
1 The given string matches the expected format of datetimes.
0 String does not match expected format of datetimes.
Arguments
StringValueA string to check whether it is in the expected format for datetimes.
More Info
Note that this command is (currently) only as capable as the clock scan command on which it is based. This means that if a clock scan succeeds with the configured datetime format then this command will return true.

For information about how to configure the format, see About Date and Time Commands.


For information regarding exceptions / errors, see here.
EXAMPLES
% IsDatetime 2000-01-02 03:04:05
1
SEE ALSO
IsDate, IsTimeOfDay, SetDatetimeFormat
KEYWORDS
check, datetime, validation, verification