Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Input > convert date issue with raddatepicker

Not answered convert date issue with raddatepicker

Feed from this thread
  • Tam avatar

    Posted on Jan 16, 2012 (permalink)

     

    Hi
    I have a problem with convert date in raddatepicker.
    <rad:RadDatePicker ID="RadDatePicker1" runat="server"  
        DateInput-DisplayDateFormat="dd-MM-yyyy" 
        DateInput-DateFormat="dd-MM-yyyy"
    </rad:RadDatePicker> 

     

    When I input 1911-01-12  (12th Jan 1911), after hitting the tab key, it has translated into 01-12-1911 (1st Dec 1911).

    Is there any way I can make the date picker convert the date correctly?
    Thanks

    Reply

  • Posted on Jan 16, 2012 (permalink)

    Hello Tam,

    Check out the following documentation.
    Date Format Patterns.

    Thanks,
    Princy.

    Reply

  • Tam avatar

    Posted on Jan 17, 2012 (permalink)

    Hello Princy,

    I inputed date format correctly. I have a problem with auto convert of rad date picker. When I input 1911-01-12   (it's mean 12th Jan 1911), it auto cinverted to 01-12-1911  (1st Dec 1911).

    How I can fix it to convert correct?

    Reply

  • Posted on Jan 17, 2012 (permalink)

    Hello,

    Try setting DateFormat as shown.

    ASPX:
    <telerik:RadDatePicker ID="RadDatePicker1" runat="server" DateInput-DateInput-DisplayDateFormat="yyyy-MM-dd" DateInput-DateFormat="yyyy-MM-dd">
    </telerik:RadDatePicker>

    Thanks,
    Princy.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Input > convert date issue with raddatepicker
Related resources for "convert date issue with raddatepicker"

ASP.NET Input Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]