phpdate _POST datetimes mysqldate date Y-m-d strtotime phpdate echo my

1
2
3
4
$phpdate = $_POST['datetimes']; ;
$mysqldate = date( 'Y-m-d', strtotime( $phpdate ) );
echo $mysqldate;