Mukesh

Mukesh

  • NA
  • 228
  • 42.7k

How to split in two parameters of text box calender

May 7 2018 1:15 PM
$(function () {
$('#datepicker_dateshow').datepicker({
changeMonth: true,
changeYear: true,
showButtonPanel: true,
dateFormat: 'mm-yy',
onClose: function (dateText, inst) {
$(this).datepicker('setDate', new Date(inst.selectedYear, inst.selectedMonth, 1));
}
});
});
Above is my Code i want to pass two parameters in this ng-model="Datashow"
 
when my calendar display then it will show one side Month and one Side Year
 
so i want to give two different parameters Like one is- month and Second is -Year
 
so how to do it
 
please help me