Could you pls tell me if there exist any way by which the Date-picker shows the selected date in the text box in a prescribed format like "12-jul-2009" instead of dd/mm/yyyy format that it generally takes?
Any sample application featuring this is much appreciated..
Regards
Mike
3 Answers, 1 is accepted
0
Accepted
Konstantin Petkov
Telerik team
answered on 05 May 2009, 07:43 AM
Hello Mike,
Thank you for your question.
You can easily change the date format in RadDatePicker through its Culture property. You need to define a CultureInfo object and tweak it as per your requirements:
CultureInfo cultureInfo = new CultureInfo("en-US");
DateTimeFormatInfo dateInfo = new DateTimeFormatInfo();
We do this, it work well but our need a format display string like like MMM dd and there no year in it, we replace the "MM/dd/yyyy" with "MMM dd" and it will crash. what can I do ? Wait it online.
Thanks
Jack
Insignia.
0
Kaloyan
Telerik team
answered on 02 Oct 2009, 11:29 AM
Hello Jack,
Please accept our apologies. The problem with your date time format is that it doesn't contain a year definition. The yeas is needed for the RadCalendar, displayed in the popup. This is the reason you are getting the exception. We will consider some improvements in this direction. Let us know if you need further assistance.