1: 2:
$datepicker = date('Y/m/d', strtotime($_POST['datepicker'])); $_SESSION['datepick'] = $datepicker;
1: 2: 3:
$date_parts = explode("/",$_POST['datepicker']); $newDate = $date_parts[2] . "-" . $date_parts[1] . "-" . $date_parts[0]; $datepicker = date('Y/m/d', strtotime($newDate));