DatePicker not formatting DateTime

2 posts, 0 answers
  1. Martin Sarosi
    Martin Sarosi avatar
    53 posts
    Member since:
    Sep 2012

    Posted 05 Mar 2010 Link to this post

    We might use any culture in our system and we are allowed to override the DateTime formats for it.

    for example en-GB usually the shortdate format gives 25/02/2010 but we might override it with MM/dd/yyyy for example which gives 02/25/2010 a US style format.

    This seems to work when the DateInput.ReadOnly is set to false but doesn't seem to work when ReadOnly is set to true.

    Any ideas?

  2. Martin
    Martin avatar
    833 posts

    Posted 10 Mar 2010 Link to this post

    Hello Martin,

    You can directly set the DateInput.DateFormat property with the required format. The attached sample project demonstrates this approach.

    I hope this helps,
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
Back to Top