|
Posted by Philip Hallstrom on 09/20/05 21:16
> Is there a quick way to compare dates in the format dd/mm/yy without
> exploding and comparing the individual parts?
Compare them in what way? Before, after, days between?
In any case, i'd look at strtotime() to convert them into timestamps, then
diff them to get the number of seconds b/n them, then go from there.
If strtotime() won't do it because it expects mm/dd/yy (consider 01/02/05
is that feb 1st or jan 2nd?) then split up the string and use mktime().
good luck.
Navigation:
[Reply to this message]
|