Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Start Date and Minimum date
compscot
Newbie

Posts: 1
Registered: 12/1/2003
Member Is Offline
posted on 12/2/2003 at 12:51 PM Reply With Quote
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
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Popup Calendar
Onpage Calendar
Modal Calendar
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004