Date Format problem in Rad Calender

5 posts, 0 answers
  1. bharat garg
    bharat garg avatar
    3 posts
    Member since:
    Mar 2010

    Posted 12 Mar 2010 Link to this post

    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...:)
  2. robertw102
    robertw102 avatar
    265 posts
    Member since:
    Jul 2007

    Posted 13 Mar 2010 Link to this post

    How are you setting the dates in RadCalendar? Can we see a snippet of the code that you use to do this?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. bharat garg
    bharat garg avatar
    3 posts
    Member since:
    Mar 2010

    Posted 15 Mar 2010 Link to this post

    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>
  5. robertw102
    robertw102 avatar
    265 posts
    Member since:
    Jul 2007

    Posted 15 Mar 2010 Link to this post

    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.
  6. bharat garg
    bharat garg avatar
    3 posts
    Member since:
    Mar 2010

    Posted 17 Mar 2010 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017