Date Processing Commands |
Top Previous Next |
The Date Processing commands are used to perform date comparisons and date "arithmetic" on date values within the script without parsing the date into its month, day and year components.
**These commands are only available in EMUEScript**
All of the following date commands result in a date with the format of MM/DD/YYYY being stored as the <variable name>, the commands accept a variety of date formats for the other date valued components of the command. For example "1-1-2004", "1/1/2004", "Jan 1, 2004", and "January 1, 2004" are recognized as the date of “01/01/2004”. EMUE also recognizes the common format of "mmddyy" in which July 1, 2003 would be “070103”. EMUE would treat “070103” as “07/01/2003”
Note: Two digit years are recognized by EMUE, but they are converted to a 4 digit year using the standard Windows method of determining the century. The Windows method defines that any two digit year that is 30 or greater is prefaced with a 19 and any year less than 30 is prefaced with a 20. This means that "1/1/29" is treated as "01/01/2029" while "1/1/30" is treated as "01/01/1930". Because this behavior can be difficult to handle reliably in script, it is recommended that 4 digit years be used in scripts whenever possible.
Note: EMUEScript has enhanced the If statement with new comparison operators that are used to compare two dates as dates rather than treating them as strings. Please refer to the If command in the Script Flow Commands section for more information.
|