This is a migrated thread and some comments may be shown as answers.

[Solved] DatePicker format dd/MM/yyyy doesn't work on production server

2 Answers 92 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Pallavi
Top achievements
Rank 1
Pallavi asked on 20 Jul 2012, 04:35 AM
I have used Telerik MVC DatePicker which has format dd/MM/yyyy. It shows date correctly on development machine but on production server, where the site has been deployed, it shows format MM/dd/yyyy. I have changed regional setting for date format and made it as dd/MM/yyyy but still the problem persists. Any help on this will be appreciated. Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 24 Jul 2012, 07:06 PM
Hello Pallavi,

The most likely reason for the difference when deploying the application is that the culture that will be picked up will be different. Setting the culture explicitly to the needed one in the Web.config file system.web globalization configuration or on the current thread should resolve the problem. For example:

<system.web>
    <globalization culture="en-GB" />
The date format can also be specified explicitly on the DatePicker by using the Format method.

Kind regards,
Daniel
the Telerik team
Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.
0
Umesh
Top achievements
Rank 1
answered on 08 Nov 2012, 06:01 AM
Hi Daniel,

I am having an issue for the setting up the dateformat for the Datepicker in the Filter can you give me example how i can set the datepicker format.
 if you see in attached screen shot I have set the columns date format in the "dd/mm/yyyy" but when i click on the filter it's showing the us format
Tags
Date/Time Pickers
Asked by
Pallavi
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Umesh
Top achievements
Rank 1
Share this question
or