<?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.
This happens when the same script is getting executed in two different places. Note that these script will be running at the user’s browser, which make use of user timezone.
When you run
minDate: new Date("2012-02-12"), the passed parameter used to calculate Date in local timezone. So if you are inIST, it will generate date for2012-02-12, 50:30and if you are inEST, it will generate2012-02-11, 19:00.Solution, generate Date object by full date and time values,