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

Generic Configurable default DateFormat throughout Application

2 Answers 14 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Zepp
Top achievements
Rank 1
Zepp asked on 21 Aug 2015, 07:12 AM

I need to make my application in such a way that there would be a centralized configurable dateformat for the whole application.
I would store the applicable dateformats in an xml file or a database & the selected dateformat will also be stored.
If for example the user has selected dd/MM/yyyy as the default format, Then every page,user control would display the datepickers,grids,form fields that are datetime in dd/MM/yyyy format throughout the application.
Can you give me a possible solution or approach I should use to achieve this?
Any suggestions of doing it in a generic way so that I dont have to configure it on every page/control/usercontrol(grid, datepicker etc).

Can this be achieved through globalization feature of Telerik UI ? Some demo or documentation would be great.

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Helen
Telerik team
answered on 21 Aug 2015, 08:03 AM
Hello,

You can change the culture globally in your Global.asax file:

http://stackoverflow.com/questions/300841/how-do-you-globally-set-the-date-format-in-asp-net

Regards,
Helen
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Zepp
Top achievements
Rank 1
answered on 21 Aug 2015, 01:32 PM
Exactly what I wanted. Thanks a ton.
Tags
General Discussions
Asked by
Zepp
Top achievements
Rank 1
Answers by
Helen
Telerik team
Zepp
Top achievements
Rank 1
Share this question
or