Skip to main content


 

Symptoms


I have a smartform with a Date picker which gets prefilled initially from a SmartBox via the "Read" method. When I run it, month and day are swapped before being displayed. I checked the date field in the database, it is correct. It is also correctly displayed on a list-SmartView.

Example: Say, the DB contains the date 10 May 2015. When I load the date to the date picker, it will contain 5 Oct 2015, no matter which locale I choose for the field:
English (UK): 5/10/2015
English (US): 10/5/2015
German: 5.10.2015
 

Diagnoses


issues with the date and time are usually caused by the web.config file cultural settings.
 

Resolution

We supplied them with a cold fix and set all the cultural settings to "en-GB" which solved the problem.



 




 
Be the first to reply!

Reply