mysql - PHP Date from Database as Timestamp - add X hours -
i have googled , give up, here goes...
i have had issues dealing times/timestamps etc, trying pull date database in sql timestamp format, have far...
$db = $row_rssearch['created_date']; $newdate = date("d/m/y h:i:s", strtotime('+3 hours', $db));
what wrong it? getting return of "31/12/1969 20:33:34" when database providing... 2014-04-25 02:19:53
thanks in advance.
if got right want add 3 hours each date?
why don't within query?
example:
select `date` + interval 3 hour created_date `table`
Comments
Post a Comment