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

Localize Date Display Format

1 Answer 73 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Kerry
Top achievements
Rank 1
Kerry asked on 27 Oct 2016, 08:48 PM

I have an odd issue with the display date being in the wrong culture. When simply adding the control on the HTML side, there is no problem.

However, in our situation, we have the datepicker embedded in a user control. The user control is then dynamically created on the fly when needed using the TemplateControl.LoadControl method.

I have read an older article in the UI for WPF forum that I can set the Culture to Null. However, I cannot seem to do this programatically on the ASP.NET side, as we are using UI for AJAX. Any help with this issue would be greatly appreciated.

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 01 Nov 2016, 03:42 PM
Hello Kerry,

By default the RadDatePicker will use the culture of the server. If you would like to specify the culture for the control explicitly you can use the options described in the article below:


Alternatively you can specify the culture for the entire application in the web.config :



Regards,
Viktor Tachev
Telerik by Progress
Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
Tags
DatePicker
Asked by
Kerry
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or