Answers for "saving timestamp mysql php with mil"

PHP
2

php mysql timestamp format

date("Y-m-d H:i:s", strtotime($_POST['timestamp']));
Posted by: Guest on March-01-2020
1

mysql timestamp format php

echo date("Y-m-d H:i:s", time());
Posted by: Guest on August-31-2021

Browse Popular Code Answers by Language