Page 1 of 1

comparing dates

Posted: Mon Mar 15, 2004 6:09 am
by nads1982
any suggestions for pulling 2 dates types from mysql and discovering which come first??

thanx

Posted: Mon Mar 15, 2004 6:44 am
by twigletmac
You can either order the dates as you retrieve them if these are dates in different records otherwise retrieve them as UNIX timestamps and compare the size of them - the smaller is the older.

Mac