[](https://travis-ci.org/smalot/bootstrap-datetimepicker)
[Homepage](http://www.malot.fr/bootstrap-datetimepicker/)
[Demo page](http://www.malot.fr/bootstrap-datetimepicker/demo.php)
<div class="input-append date form_datetime" data-date="<?= date("Y-m-dTh:i:sZ") ?>"> <label for="begindate">Задача: дата и время начала</label> <span class="add-on"><i class="icon-remove"></i></span> <span class="add-on"><i class="icon-calendar"></i></span> <input size="16" type="text" name="begindate" value="" readonly> </div> <div class="input-append date form_datetime" data-date="<?= date("Y-m-dTh:i:sZ") ?>"> <label for="enddate">Задача: дата и время окончания</label> <span class="add-on"><i class="icon-remove"></i></span> <span class="add-on"><i class="icon-calendar"></i></span> <input size="16" type="text" name="enddate" value="" readonly> </div> <?php // echo $this->Form->input('begindate'); // echo $this->Form->input('enddate'); echo $this->Form->input('name'); echo $this->Form->input('comment'); ?> <script type="text/javascript"> $(".form_datetime").datetimepicker({ language: 'ru', format: "yyyy-mm-dd hh:ii", autoclose: true, todayBtn: true, startDate: "<?= date("Y-m-d") ?>", minuteStep: 30 }); </script>
CakePHP makes it easy to add custom input widgets in your application, and use them like any other input type. All of the core input types are implemented as widgets, which means you can override any core widget with your own implemenation as well.