Bootstrap Undefined Load Date Picker Nan Header in Mozilla Firefox

We are using the upload date picker plugin to display the calendar. This date field is editable. So if I manually give the value 10-10-19, then the calendar is displayed with the title "Undefined Nan" and cannot pick another date from the date picker calendar.

It takes up to a year like 70 (10-10-70). Below is a demo link and we used it in our application. It works fine in Chrome browser and takes even 1 year, but not in Mozilla Firefox. How can I solve this?

Choosing a download date

+3


source to share


1 answer


Add this script:



$("#StartDate").datepicker({
    changeMonth: true,
    changeYear: true,
    dateFormat: 'dd/mm/yy',
    dateonly: true,
    yearRange: '1950:2013',
});

$("#StartDate").datepicker('option', 'dateFormat', 'dd/mm/yy');

      

0


source







All Articles