DateTimePicker code example

Example 1: datetimepicker

$('#datetimepicker').datetimepicker();

Example 2: datetimepicker

<input type="text" value="2012-05-15 21:05" id="datetimepicker">

Example 3: datetimepicker

<div class="input-append date" id="datetimepicker" data-date="12-02-2012" data-date-format="dd-mm-yyyy">    <input class="span2" size="16" type="text" value="12-02-2012">    <span class="add-on"><i class="icon-remove"></i></span>    <span class="add-on"><i class="icon-th"></i></span></div>

Example 4: datetimepicker

<div class="input-append date" id="datetimepicker" data-date="12-02-2012" data-date-format="dd-mm-yyyy">    <input size="16" type="text" value="12-02-2012" readonly>    <span class="add-on"><i class="icon-th"></i></span></div>

Example 5: datetimepicker

<div class="input-append date" id="datetimepicker" data-date="12-02-2012" data-date-format="dd-mm-yyyy">    <input class="span2" size="16" type="text" value="12-02-2012">    <span class="add-on"><i class="icon-th"></i></span></div>

Example 6: datetimepicker

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

Example 7: datetimepicker

<input type="text" value="2012-05-15 21:05" id="datetimepicker" data-date-format="yyyy-mm-dd hh:ii">

Example 8: datetimepicker

<div id="datetimepicker"></div>

Example 9: datetimepicker

<script type="text/javascript" src="bootstrap-datetimepicker.de.js" charset="UTF-8"></script>

Example 10: datetimepicker

$.fn.datetimepicker.dates['en'] = {    days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],    daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],    daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"],    months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],    monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],    today: "Today"};