View Single Post
Thrawn2
Veteran Member
Join Date: Apr 2009
Old 07-20-2011 , 12:36   Re: How to get date from database ?
Reply With Quote #4

you can't get unix_timestamps or you can't get the mysql date functions to work?

if you want to use unix timestamps (take a look at FROM_UNIXTIME) just subtract the ints and you get the seconds between both dates.
if you want to utilize mysqls builtin stuff take a look at DATEDIFF and the examples.

also: what did you try and why did it fail?
__________________
einmal mit profis arbeiten. einmal.
Thrawn2 is offline