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