Hello All!

I have a DatePicker in a form.

My main goal is to check to see if the date expiration is not more than
a year out. I have looked through the forums and have a pretty good idea
of what I need to do.

However, I'm having issues grabbing the date that they select from the
DatePicker. I have a standard DatePicker, not initialized to any values.
My issue is that when I have the below for an onchange event:

var s =
form.stringToDate(form.getValue('ExpirationDate'), true).getTime();
form.showMsg("value is"+form.dateToString(new Date(s), true));

The value I get is ExpirationDate: value is12/31/1969 07:00:00 PM?


Why is it not grabbing the actual value of the DatePicker field?

Thanks again for all the help!


--
ralyle
------------------------------------------------------------------------
ralyle's Profile: http://forums.novell.com/member.php?userid=81342
View this thread: http://forums.novell.com/showthread.php?t=406043