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

dd mmm yyyy Date format for selected date

2 Answers 102 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Andy Green
Top achievements
Rank 2
Andy Green asked on 03 Dec 2008, 02:29 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 03 Dec 2008, 03:19 PM
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.
0
Andy Green
Top achievements
Rank 2
answered on 03 Dec 2008, 03:38 PM
Got it thanks.

Andy
Tags
Calendar
Asked by
Andy Green
Top achievements
Rank 2
Answers by
Daniel
Telerik team
Andy Green
Top achievements
Rank 2
Share this question
or