I have a data time picker in html like this :
now clicking the input it shows a celendare.
double clocking the year value shows negative year values like : -2021
I have tried this javascript code and it did not work :
$('.date-picker').datetimepicker({
format: 'MM/DD/YYYY',
minDate: '1900-01-01',
useCurrent: false, // Prevents auto-setting to current date/time on error
viewMode: 'days'
});
any reason ?
If I use
$('.date-picker').datepicker({
format: 'mm/dd/yyyy',
startDate: '01/01/1900',
endDate: '12/31/2030',
autoclose: true,
todayHighlight: true
});
I am getting TypeError: $(...).datepicker is not a function ?