Calendar is not populating in IE11-ASP.NET MVC RRS feed

  • Question

  • Hi,

    I am doing some validation for the below date picker,it is working fine in chrome.

    But this is not working in the browser IE11.

    Please let me know if I am missing anything here as this is a production issue.


                                            @Html.LabelFor(model => model.contractenddate, "Contract End Date: ", new { data_translate = "endDate" })
                                            @Html.DisplayFor(model => model.contractenddate)



    EndDate = $("#contractenddate").val();
            $("#contractenddate").focusout(function () {
                var contractEndDate = new Date($("#contractenddate").val());
                var today = new Date();
                var targetDate = new Date();
                targetDate.setDate(today.getDate() + 180);

                if ((Date.parse(targetDate) > Date.parse(contractEndDate)) && Date.parse(contractEndDate) > Date.parse(today)) {
                    // alert('Within Date limits');
                } else {



    Thanks & Regards, Sudheer

    Friday, December 7, 2018 2:59 AM

All replies

  • Hi,

    Internet Explorer 11 does not currently support <input type='date'> please refer the below article from  Microsoft road map Article "

    Inputting dates in a form is common practice on the Web. We’re beginning the implementation of a variety of new input controls for basic date picking. These controls will use the standard HTML5 types and provide UI that’s friendly to your input device, like our other HTML5 input controls.



    Tuesday, December 18, 2018 8:21 PM