CI_Model timestamp format mysql code example Example: php mysql timestamp format date("Y-m-d H:i:s", strtotime($_POST['timestamp']));