1

I am using Gijgo datepicker and I need format (Jenuary 2019) without days on calendar.

enter image description here

<div class="col-sm-3">
  <input id="datepicker" class="form-control" name="datepicker"/>
</div>
$('#datepicker').datepicker({
    uiLibrary: 'bootstrap',
    format: 'mmmm yyyy'
});
Sargis
  • 168
  • 4
  • 12

2 Answers2

1

I think your format is not valid. in the format, for example try format: 'yyyyMM' Not sure about Gijgo datepicker but this is how you get date in month-year format, in JQuery.

or try this format:

dateFormat: 'MM yy'

according to this

Hope that helps

Sam Hajari
  • 354
  • 4
  • 10
1
<div class="col-sm-3">
  <input id="datepicker" class="form-control" name="datepicker"/>
</div>
$('#datepicker').datepicker({
    uiLibrary: 'bootstrap',
    format: 'mmmm-yyyy'
});

The only mistake is not use - in between 'mmmm yyyy'

Guarav
  • 11
  • 2