nepali-date-picker
nepali-date-picker copied to clipboard
cant use year and month only
i got the following error while using month and year only:
jquery.nepaliDatePicker.min.js:1 Uncaught ReferenceError: Missing required parameters: bsYear, bsMonth, bsDate
am i doing something wrong?? following is my code:
$(document).ready(function(){
$('#nepaliDatepicker').nepaliDatePicker({
dateFormat: "%y-%m",
closeOnDateSelect: true
});
let nep_date = (calendarFunctions.getBsDateByAdDate(year, month, day));
let nepMonth = calendarFunctions.getNepaliNumber(nep_date.bsMonth);
let nepYear = calendarFunctions.getNepaliNumber(nep_date.bsYear);
$('#nepaliDatepicker').val(nepYear+'-'+nepMonth);
});
Late response, but I just read the official docs for this and maybe the Date format is incorrect here.
Stale issue, closing.