I am doing a comparison of dates in an if statement...
matdate is a date in the format of "July 15, 2010".
set matdate1 [clock scan $matdate]
if {[clock seconds] < $matdate1} {
#run this code...
}
The first problem I encountered is I have some dates that exceed 2038. I get an "unable to convert" error for these. I was looking for a simple way to get today's date and test if matdate is greater than todays date. Any suggestions on alternatives? Thanks.
matdate is a date in the format of "July 15, 2010".
set matdate1 [clock scan $matdate]
if {[clock seconds] < $matdate1} {
#run this code...
}
The first problem I encountered is I have some dates that exceed 2038. I get an "unable to convert" error for these. I was looking for a simple way to get today's date and test if matdate is greater than todays date. Any suggestions on alternatives? Thanks.