Syntax:
|
IFDATETIMExx
|
[ date1 ] [ date2 ] goto [ label ]
|
Forms:
|
IFDATETIME=
|
[ date1 ] [ date2 ] goto [ label ]
|
|
IFDATETIME<
|
[ date1 ] [ date2 ] goto [ label ]
|
|
IFDATETIME>
|
[ date1 ] [ date2 ] goto [ label ]
|
|
IFDATETIME<=
|
[ date1 ] [ date2 ] goto [ label ]
|
|
IFDATETIME>=
|
[ date1 ] [ date2 ] goto [ label ]
|
|
IFDATETIME! =
|
[ date1 ] [ date2 ] goto [ label ]
|
Arguments:
|
[ date1 ]
|
Variable or string containing the formatted date and time string in the format of Sat Feb 17 11.00.22 2001.
|
|
[ date2 ]
|
Variable or string containing the formatted date and time string in the format of Sat Feb 17 11.00.22 2001.
|
|
[ label ]
|
A valid label within the current script file which is branched to if the date condition is satisfied.
|
Options:
|
none
|
|
This command is used to compare two specified date and time strings in the format of Sat Feb 17 11.00.22 2001.
When specifying a date, leading zeroes are required. The following are examples of valid date strings.
| Sun Jan 30 11.43.02 2000 | January 30, 2000 11:43:02 AM |
| Sat Dec 25 18.12.37 1999 | December 25, 1999 6:12:37 PM |
Syntactically, no space is permitted to the left of the ‘!’, '=', '<' or '>' symbols, and a space is required to the right of these symbols.
The following conditional branch is taken if the current date is past June 21, 2003 12:00:00 AM.
IFDATETIME> %datetime "Sun Jun 21 12.00.00 2003" goto later date
Related Command(s): DATETIMEADD, DATETIMESUB
See also: Using the %date, %datetime, and %time Variables
|