How to Disable Autocorrect in RadDatePicker

2 posts, 0 answers
  1. Rajiv
    Rajiv avatar
    5 posts
    Member since:
    Jul 2011

    Posted 10 Nov 2011 Link to this post

    The RadDatePicker Auto correcting if you put invalid date values.

    Ex : 01012011auto correct to 01-Jan-2011

    How Can i disable autocorrect in RadDatePicker? 
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 10 Nov 2011 Link to this post

    Hello Rajiv,

    Try the following javascript.
    <script type="text/javascript"
    Telerik.Web.UI.RadDateInput.prototype.parseDate = function(value, baseDate)   
       if (new Date(value) != "NaN")   
         return value;   

Back to Top