I am reading an "effective date" from an INI file, the date is in the format mm/dd/yyyy. I want to compare the effective date to the date when the AMS4 executable is run and display a warning whenever the executable is run before the date in the INI file. For example, if the AMS4 executable is run before the "effective date" of 12/17/2003, I want the warning to show.
This is what I currently have: %effectivedate% = 12/17/2003
IF (%DATE% < %effectivedate%)
%Result% = Dialog.MessageBox ("Message", "%DATE% is earlier than %effectivedate%", Ok, Information)
END IF
The correct message I am getting is "09/15/2003 is earlier than 12/17/2003". Now, if I change the effective date to 12/17/2000, I still get "09/15/2003 is earlier than 12/17/2000" and this is incorrect. Am I doing something wrong?
This is what I currently have: %effectivedate% = 12/17/2003
IF (%DATE% < %effectivedate%)
%Result% = Dialog.MessageBox ("Message", "%DATE% is earlier than %effectivedate%", Ok, Information)
END IF
The correct message I am getting is "09/15/2003 is earlier than 12/17/2003". Now, if I change the effective date to 12/17/2000, I still get "09/15/2003 is earlier than 12/17/2000" and this is incorrect. Am I doing something wrong?
Comment