to all guru
how do i convert mktime to timestamp?
example $eg = date("y-m-d",strtotime("-15 days")); into timestamp
thanks
If you mean for use in a timestamp type field in a database:
$timestamp = date("Y-m-d H:i:s", strtotime("-15 days")); // or // $timestamp = date("YmdHis", strotime("-15 days"));
(MySQL will accept either format as a datetime or timestamp value.)
hheheh.. how dumbed i am.. did not notice that it is already in timestamp lOL
Thanks anyway