Originally posted by nagasea
why unixtimestamp is better ?
can someone tell me a little bit about this
to elaborate on the previous answer....
with a unixtimestamp.... 12/23/03 < 12/25/03
you can substract the timestamps to get the timebetween (in seconds) with timestamps you can then use php's date() function to get a plethora of information from those timestamps....
with sql DATE type still 12/23/03 < 12/25/03
you use mysql functions to get not AS much but still quite abit of data from the date (DAYOFWEEK() and other functions in mysql)
you could even do SELECT * FROM table WHERE datefield IS BETWEEN 1/1/03 AND 2/28/03
with your method... using month/day/year columns you would have to compare THREE columns to do that.... (thats alot of SQL statement to write....)
hope this helps explain some 😃