compare two dates

BlitzPlus Forums/BlitzPlus Programming/compare two dates

If your using strings, I really recommend casting them to integers:-

curMonth=Int("02")
curYear=Int("2007")
curDate=Int("21")

If curMonth < Int("03") And curYear < Int("2008") And curDate < Int("22")

Print "yup."

Else
Print "nope."
End If 
WaitKey 


Otherwise, the If expression returns 'nope', when infact, it should return 'yup'

Dabz