I am using bootstrap datetimepicker. I want the datetimepicker format as short month name eg. Jan
. My code is below and it shows the full month name now as January
. How to make it Jan
?
$('.datepickersren').datetimepicker({
format: 'MMMM',
viewMode: "months",
})
Please note that the format:'M'
is not working in datetimepicker. It will work on the datepicker only. If we give format:'M'
in datetimepicker, the month format is month number eg. 5, 6, 7 etc. Not the month names like Jan
, Feb,
etc.