WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Samples from Users

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Compare Different Date Format Trick

 Keywords: Compare Different Date Time Format Older Newer

This ObjectType trick works with multiple date formats:
strTitle = "Expiration"
strExpireDate = "08/21/2014" ; Could be YYYY:MM:DD or other date formats.
ymdExpireDate = ObjectType("date", strExpireDate)
ymdToday = TimeYmdHms() ; YYYY:MM:DD:HH:MM:SS
If ymdToday >= ymdExpireDate
   Message(strTitle, " This Programs has expired on :%strExpireDate%")
   Exit
Else
   Message(strTitle, " This Programs has NOT expired.")
EndIf

Article ID:   W18305
Filename:   Compare Different Date Format Trick.txt
File Created: 2013:08:23:10:02:48
Last Updated: 2013:08:23:10:02:48