Welcome Guest, Not a member yet? Register   Sign In
timestamp
#2

[eluser]fesweb[/eluser]
You are passing a string into the date() function, which requires a timestamp, or at least a number. Plus your unix timestamp is 3 digits too long.
Code:
'valid_from'=>date('Y-m-d H:i:s','1299762201428')
// should be more like this...
'valid_from'=>date('Y-m-d H:i:s', 1299762201) // no quotes
// or...
'valid_from'=>date('Y-m-d H:i:s', strtotime('2009-02-01'))


Messages In This Thread
timestamp - by El Forum - 07-30-2011, 12:48 PM
timestamp - by El Forum - 07-30-2011, 09:28 PM



Theme © iAndrew 2016 - Forum software by © MyBB