I have the following date field:
<div class='input-group date input-data' id='datetimepicker4'>
<input type='text' name="mes" id="mes" class="form-control hidden" />
<span class="input-group-addon hidden">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
$('#datetimepicker4').datetimepicker({
format: 'MMMM-YYYY',
locale: 'pt-br',
defaultDate: new Date()
});
This format is displayed: September-2016. How do I display in this format and then convert to 01/09/2016?