formatted date to timestamp php code example
Example 1: php mysql timestamp format
date("Y-m-d H:i:s", strtotime($_POST['timestamp']));
Example 2: php timestamp format
date("d.m.Y", strtotime($mysqltimestamp)
date("Y-m-d H:i:s", strtotime($_POST['timestamp']));
date("d.m.Y", strtotime($mysqltimestamp)