Hi
I've got 2 DATETIME vars out of mysql in the following format...
%yyyy%-%mm%-%dd% %HH%:%MM%:%ss% 1999-03-25 21:32:02
Can anyone tell me how I can compare the two? What I want to do is find out if one datetime is before or after the other.
I have tried GT's date module with date_is_smaller() but it doesn't seem to recognise the hour, minute, second part of the date - only the actual date part of it.
Any ideas?
Thanks
r
I've got 2 DATETIME vars out of mysql in the following format...
%yyyy%-%mm%-%dd% %HH%:%MM%:%ss% 1999-03-25 21:32:02
Can anyone tell me how I can compare the two? What I want to do is find out if one datetime is before or after the other.
I have tried GT's date module with date_is_smaller() but it doesn't seem to recognise the hour, minute, second part of the date - only the actual date part of it.
Any ideas?
Thanks
r