<?php
$week_start_date = '2012-02-06';
$week_start_date = '2012-02-12';
?>
$("#test").datepicker({
altField: "#test1",
altFormat: "yy-mm-dd",
autoSize: true,
minDate: new Date("<?php echo $week_start_date; ?>"),
maxDate: new Date("<?php echo $week_end_date; ?>")
});
OUTPUT
In my location(India) the range restriction seems display right. but in US the range shows from 2012-02-05 to 2012-02-11.
I dont know why its making restriction on day prior. i checked in the firebug the restriction range is right but in US the range is displaying as 2012-02-05 to 2012-02-11.
Please help me to solve this.