bootstrap dateTimePicker plugin

-1

good morning I have a doubt I am using the bootstrap-dateTimePicker library but I have a problem that shows me the hours from 0 to 24 hours and I could not change the format so that it only shows me 12 hours as in a normal clock

I want to show from 1 to 12 as is normal but I could not?

    
asked by Danier Perdomo 02.03.2018 в 15:02
source

2 answers

1

with this library you can answer my question Material Inspired Clock Time Picker Plugin - jQuery MDTimePicker

since it visually shows 12 hours and the option to select am or pm

below I leave the link for people interested in implementing a watch you can find here and are very easy to implement

link

It is easier for a person to understand the clock from left to right this was my answer when converting hours

    
answered by 02.03.2018 в 20:44
0

I do not know what library you will be using, but with this you can do it in the following way:

$(document).ready(function() {
  $('#reloj').clockpicker({
    autoclose: true,
    twelvehour: true
  });
});
<link href="https://cdnjs.cloudflare.com/ajax/libs/clockpicker/0.0.7/jquery-clockpicker.min.css" rel="stylesheet"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/clockpicker/0.0.7/jquery-clockpicker.min.js"></script>


<div class="container">
  <input id="reloj" value="" data-default="22:22">
</div>
    
answered by 02.03.2018 в 17:51