Page 1 of 1
Incorrect Date passed

Posted:
16 Oct 2013 13:39
by zsleo
XE; IW 14.0.17; CDG 1.7.0.2989
When I type in the date 16-1-2013 the drop-down picker displays the date correctly but when I click a button to use the selected date the value passed to the app is 30-12-1899
When I type in the date 16-01-2013 the correct date is passed.
Regards
Zane
Re: Incorrect Date passed

Posted:
16 Oct 2013 14:29
by Jorge Sousa
Hi Leo
what is the value of JQDatePickerOptions.DateFormat?
regards
Re: Incorrect Date passed

Posted:
17 Oct 2013 00:48
by zsleo
dd-mm-yyyy
Re: Incorrect Date passed

Posted:
17 Oct 2013 10:56
by Jorge Sousa
Hi Leo
I'm sorry, but we're unable to replicate this, no matter what we try.
Please detail a little more please
Best Regards
Re: Incorrect Date passed

Posted:
21 Oct 2013 22:37
by zsleo
Just installed CDG 1.8.xx
Component left with defaults
Here is an example:
Click test button: WebApplication.ShowMessage('Date: ' + FormatDateTime('yyyy-mm-dd', iwcgjqdtpckr1.Date));
Re: Incorrect Date passed

Posted:
22 Oct 2013 14:50
by Jorge Sousa
Hi Leo
If you are you saying that:
If you input date ONLY with keyboard, and after you click on button this will happens, we can confirm this. To be fixed asap
Best Regards
Re: Incorrect Date passed

Posted:
22 Oct 2013 17:42
by Jorge Sousa
Hi again
The problem with this is that the default date format is mm/dd/yyyy
And this also means for the datepicker plugin (unfortunatelly) that valid dates must contains 2 digits for month and day.
For 01/2/2013 be considered valid, you would have to set mm/d/yyyy
Best Regards
Re: Incorrect Date passed

Posted:
23 Oct 2013 05:29
by zsleo
Okay. I will add some validation to my code.
Thanks