Reputation: 81
i want to use the the 24 hour format in my datetime picker im my view here the code of my view i am using the simple datetime local
<input id="start_date" type="datetime-local" class="form-control>
i tried this
<script type="text/javascript">
$('#clockPicker').timepicker({
'timeFormat':'H:i'
});
</script>
Upvotes: 6
Views: 26660
Reputation: 104
Referring to Mozilla reference, it is NOT possible to choose the date format.
If you want to use 24H format, you can change your system preferences. The date format is based on your system preferences.
Upvotes: 4