Convert Unix epoch timestamp to MySQL timestamp in PHP -
i have issue whereby client has legacy environment (iis 6 / php 5.0.1) , keeps getting following error:
warning: date() [function.date]: windows not support dates prior midnight (00:00:00), january 1, 1970 in" when using date() function.
i need find way convert unix timestamp, i.e "1293559200" (28th of dec, 2010) can pass on correct date.
select from_unixtime(unix_timestamp(), '%y-%m-%d %h:%i:%s');
where can replace unix_timestamp() timestamp value.
Comments
Post a Comment