Need to Stop DatePicker autocorrect

1 posts, 0 answers
  1. Werner
    Werner avatar
    1 posts
    Member since:
    Nov 2017

    Posted 30 Nov 2017 Link to this post


    I have been struggling with this a fair bit.

    I have a Telerik Raddatepicker control in a custom usercontrol. When a user Enters a date of 31/02/2000 (Invalid, as there never is 31 days in February), I need to display an error or, show the yellow triangle or something, instead of the control changing the date to 28/02/2000. The control must NOT automatically change the date.
    I cannot use one of the latest versions of Telerik.Web.UI.Dll that has the EnableSmartParsing property.

    I am bound to use version: 2013.2.717.40.

    Please assist me with a script to accomplish this.

    What I currently have is :

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



Back to Top