CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Incorrect Date passed

by zsleo » 16 Oct 2013 13:39

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
zsleo
 
Posts: 776
Joined: 03 Feb 2013 03:33

by Jorge Sousa » 16 Oct 2013 14:29

Hi Leo

what is the value of JQDatePickerOptions.DateFormat?

regards
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by zsleo » 17 Oct 2013 00:48

dd-mm-yyyy
zsleo
 
Posts: 776
Joined: 03 Feb 2013 03:33

by Jorge Sousa » 17 Oct 2013 10:56

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
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by zsleo » 21 Oct 2013 22:37

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));
You do not have the required permissions to view the files attached to this post.
zsleo
 
Posts: 776
Joined: 03 Feb 2013 03:33

by Jorge Sousa » 22 Oct 2013 14:50

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
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by Jorge Sousa » 22 Oct 2013 17:42

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
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by zsleo » 23 Oct 2013 05:29

Okay. I will add some validation to my code.

Thanks
zsleo
 
Posts: 776
Joined: 03 Feb 2013 03:33


Return to JQDatePicker

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.