<?php
$datepicker='';
if(isset($_POST['datepicker']) && trim($_POST['datepicker']) != ''){
list($d, $m, $y) = explode('/', trim($_POST['datepicker']));
$mk=mktime(0, 0, 0, $m, $d, $y);
$datepicker=getdate($mk);
}
session_start();
$_SESSION['datepick'] = $datepicker;
?>
|