I have this code:
$date = htmlentities($_POST[\'day\']); $date = str_replace(\'/\', \'-\', $date); $date = date(\'Y-m-d\', strtotime($date)); $act = $con-&