javascript - bootstrap date time picker change format -


i'm using bootstrap date time picker select date time format mm/dd/yyyy hh:ii want change format dd/mm/yyyy hh:ii

i had used method didn't have format want same format still appear

 <script type="text/javascript">             $(function () {                 $('#datetimepicker1').datetimepicker({                        format: "dd/mm/yyyy hh:ii"                 });             });         </script> 

html code:

<input type="text" value="" id="datetimepicker1" name="txt_padd"  placeholder="actual date" class="form-control input-md" onchange="call()"  onkeyup="savevalue(this);" > 

how can change format of datetimepicker ??!!

check out

demo

$('#datetimepicker2').datetimepicker({    format: 'dd/mm/yyyy hh:mm' }); 

Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -