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

Date Format problem in Rad Calender

4 Answers 72 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
bharat garg
Top achievements
Rank 1
bharat garg asked on 12 Mar 2010, 10:33 AM
i am using telerik calander control whose culture is set to english(us) and that return value in M/D/YYYY format but my server which is windows2008 server whose dateformat is DD/MMM/YYYY.this will thow exception 'String is not valid date' like that when we assign calender value in some date variable.
kindly tell me the solution of this problem i want my application  not to be particular dateformat specific.

waiting for your positive reply...:)

4 Answers, 1 is accepted

Sort by
0
robertw102
Top achievements
Rank 1
answered on 13 Mar 2010, 07:36 PM
How are you setting the dates in RadCalendar? Can we see a snippet of the code that you use to do this?
0
bharat garg
Top achievements
Rank 1
answered on 15 Mar 2010, 06:27 AM
following are the code for radcalender in .aspx file:

 <radCln:RadDatePicker ID="TimeFrom" runat="server">
                                                                        <DateInput CatalogIconImageUrl="" Description="" DisplayPromptChar="_" PromptChar=" "
                                                                            Title="" TitleIconImageUrl="" TitleUrl=""></DateInput>
                                                                    </radCln:RadDatePicker>
0
robertw102
Top achievements
Rank 1
answered on 15 Mar 2010, 02:19 PM
If your using the RadDatePicker, you would retrieve the date as: RadDatePicker1.SelectedDate.Value. Is this not what you're doing? I'm guessing it isn't since your getting a string error message.
0
bharat garg
Top achievements
Rank 1
answered on 17 Mar 2010, 10:54 AM
in my rad calender there is not property named with Value we use CalenderName.SelectedDate property. i thik we have old version of rad controls.kindly suggest some other options.
Tags
Calendar
Asked by
bharat garg
Top achievements
Rank 1
Answers by
robertw102
Top achievements
Rank 1
bharat garg
Top achievements
Rank 1
Share this question
or