wp_enqueue_script('jquery-ui-datepicker');
wp_enqueue_style('jquery-ui-css', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css');
print <<<DATE
<script>
$( function() {
$( ".datepicker" ).datepicker({
dateFormat:"yy-mm-dd",
changeMonth: true,
changeYear: true,
yearRange: "1945:c"
});
});
</script>
DATE;
print "<B>POST </B>".print_r($_POST,true)."<BR>";
print <<<FORM
<form method='POST'>
<p>Input Date1: <input type="text" class="datepicker" name="date1" value=""></p>
<p>Input Date2: <input type="text" class="datepicker" name="date2" value=""></p>
<input type="submit" name="submit" value="Submit">
</post>
FORM;