Hello Rodrigo,
it’s me again. I tried to change the 12 hr format to 24 hr format in an appointment – form. I tried it via the data-attributes function in plain HTML shown here: http://jdewit.github.io/bootstrap-timepicker/ and with custom.js like this:
$(function () {
$('#firstTime').datetimepicker({
use24hours: true
format: "hh:mm"
});
});
$.extend(theme.PluginTimePicker.defaults, {
format: "hh:mm"
});
Here is the site’s code:
<div class="col-lg-6">
<div class="form-row">
<div class="col">
<p class="font-weight-semibold mb-2">Zweiter Wunsch</p>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-6">
<input type="text" value="" data-msg-required="Bitte ein Datum wählen" maxlength="100" class="form-control custom-datepicker" name="secondDate" id="secondDate" required placeholder="Datum">
</div>
<div class="form-group col-md-6">
<input type="text" value="" data-msg-required="Bitte Wunschzeit auswählen" maxlength="100" class="form-control custom-timepicker" name="secondTime" id="secondTime" required placeholder="Zeit">
</div>
</div>
</div>
I know that this is a noob question but maybe you can just point me where I have to look since I am not really clear where to try next.
Thank you very much and best regards
Kai