dd mmm yyyy Date format for selected date

3 posts, 1 answers
  1. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 03 Dec 2008 Link to this post

    Hi All

    Is there a way at design time (Preferably in the Aspx page, not code behind) to set the format of the selected date to dd mmm yyyy.

    I've seen a way to do it with a client side event.

    Andy
  2. Answer
    Daniel
    Admin
    Daniel avatar
    4945 posts

    Posted 03 Dec 2008 Link to this post

    Hello Andy,

    The problem is that the page parser itself is unable to convert the SelectedDate to another format:
    <asp:Calendar runat="server" ID="Calendar1" SelectedDate="29/3/2007" /> 

    Error: Cannot create an object of type 'System.DateTime' from its string representation '29/3/2007' for the 'SelectedDate' property.

    Best regards,
    Daniel
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 03 Dec 2008 Link to this post

    Got it thanks.

    Andy
Back to Top