Welcome Guest Search | Active Topics | Sign In | Register

setValidDateRange for Calendar Object and entering a date manually Options
rvaneynd
Posted: Tuesday, October 28, 2008 7:06:05 AM
Rank: Newbie
Groups: Member

Joined: 10/27/2008
Posts: 4
Hi,

Found a strange thing when using the setValidDateRane on a calendar object.

The example is as follows:

var tCal = eo_GetObject(oCal);

var tDate1 = new Date(); //MinDate
var tDate2 = new Date(); //MaxDate

tDate1.setFullYear(2007,10,15);
tDate2.setFullYear(2008,10,15);

tCal.setValidDateRange(tDate1,tDate2);

Make sure you set the Date Format to 'dd/MM/yyyy'

When you use the values below for your Calendar component and then use the DatePicker function to enter a date manually (so do not use the calendar).
Then you manually try to enter the following date: 29/02/2008 (which is Feb 2nd, 2008), you will see that the date showing will be 15/02/2008.

I believe this is a bug in the setValidDateRange function.

Can you please confirm?

UPDATE:
If you change tDate1 to tDate1.setFullYear(1990,1,1) and then try to enter the date above (29/02/2008) again, you will see that this time the date return is correct.

rvaneynd
eo_support
Posted: Tuesday, October 28, 2008 7:14:40 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Thank you very much for the information. We will look into it and get back to you as soon as possible.

Thanks!
eo_support
Posted: Tuesday, October 28, 2008 11:19:35 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Which version are you using?

Thanks
rvaneynd
Posted: Tuesday, October 28, 2008 11:26:13 AM
Rank: Newbie
Groups: Member

Joined: 10/27/2008
Posts: 4
EO Support,

I have tried 2 version:
* 6.0.21.2
* 6.0.44.2

Regards,
rvaneynd
eo_support
Posted: Tuesday, October 28, 2008 4:17:29 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We have posted a new build that fixed this issue. Please see your private message for download location.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.