Generic Configurable default DateFormat throughout Application

3 posts, 1 answers
  1. Zepp
    Zepp avatar
    4 posts
    Member since:
    Aug 2015

    Posted 21 Aug 2015 Link to this post

    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. Answer
    Helen
    Admin
    Helen avatar
    1052 posts

    Posted 21 Aug 2015 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Zepp
    Zepp avatar
    4 posts
    Member since:
    Aug 2015

    Posted 21 Aug 2015 in reply to Helen Link to this post

    Exactly what I wanted. Thanks a ton.
Back to Top