php mysql timestamp format
snippet in php

php mysql timestamp format

user8071

date("Y-m-d H:i:s", strtotime($_POST['timestamp']));