maybe I'm just stupid, but I'm not able to find an easier way to compare a "day string" with a date value to see if they match. For example if a "day string" was yesterday, on a specific day last month or something.
The sample code should explain better. The "day string" is provided on the first line.
Code: Select all
Stringday.s = "2013.04.17"
Datevalue.i = Date()
Firstday.i = ParseDate("%yyyy.%mm.%dd", Stringday)
Secondday.i = Date(Year(Datevalue), Month(Datevalue), Day(Datevalue), 0, 0, 0)
If Firstday = Secondday
Debug "Stringday is today!"
Else
Debug "Stringday is not today!"
EndIf