"Date and Hour:minute:Seconds bootstrap datetimepicker language"
Bootstrap 4.1.1 Snippet by muhittinbudak

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/3.1.4/css/bootstrap-datetimepicker.min.css"> <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.20.1/moment-with-locales.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/3.1.4/js/bootstrap-datetimepicker.min.js"></script> <div class="container"> <div class="row"> <h2 style="background-color:yellow">Date Hour minute Seconds bootstrap datetimepicker language</h2> <br /> <input type="text" id="dateTimePicker" style="font-weight:bold" class="form-control input-lg"> </div> </div>
$(document).ready(function(){ $('#dateTimePicker').datetimepicker({ format : 'DD/MM/YYYY HH:mm:ss', todayHighlight: true, autoclose: true, language: 'tr', useSeconds: true }); }); $('#dateTimePicker').change(function () { var deger = $(this).val(); $("h2").html("<font color=green>" + deger + "</font>"); }); //Use capitals letter for hours HH = 24 hour format an hh = 12 hour format //format : 'DD/MM/YYYY HH:mm' //format: "DD/MM/YYYY hh:mm:ss A", //format: 'HH:mm' //pickDate: false, //pickSeconds: false, //pick12HourFormat: false

Related: See More


Questions / Comments: