SyntaxFix
Write A Post
Hire A Developer
Questions
If you dont want to change the format of date and time from the timestamp, you can use the explode function in php
explode
$timestamp = "2012-04-02 02:57:54" $datetime = explode(" ",$timestamp); $date = $datetime[0]; $time = $datetime[1];