compscot
Newbie
Posts: 1
Registered: 12/1/2003
Member Is Offline
|
| posted on 12/2/2003 at 12:51 PM |
|
|
Start Date and Minimum date
Hi,
I am trying to put Initial date as previous selected in a form, and the minimum date allowed as yesterday.
My ASP file has a variable "lastSelDate" which is in format "dd/mm/yyyy"
I am using cal_format03.js
var MySelDate = "<% =LastSelDate %>";
var strDate = new Date();
MyStartDate=new Date strDate.getFullYear( ), strDate.getMonth( ), strDate.getDay( )-1);
MyStartDate=MyStartDate.getDay & "/" & MyStartDate.getMonth +1 & "/" & MyStartDate.getFullYear ;
var cal1 = new calendar(MySelDate , 'order_form', 'del_date', MyStartDate ,400);
If the Initial date was a date 5 days in advance, I get the minimum date 1 day less than that initial date. If I use a Number for minimum Date
instead of string it works as I would imagine.
Any suggestions?
Thanks
|
|
|
|