<?php echo $this->Html->script('bootstrap-datepicker.js?1.0.0'); ?>
<script>
    $(".my-datepicker").datepicker({
        autoclose: true,
        format: 'yyyy-mm-dd'
    });
</script>
<script>
    var currentdate = new Date();
    currentdate.setDate(currentdate.getDate());
    $(".date-only").datepicker({
        startDate: currentdate,
        autoclose: true,
        todayHighlight: true,
        format: 'yyyy-mm-dd'
    });

    $(".date-edit-only").datepicker({
        autoclose: true,
        todayHighlight: true,
        format: 'yyyy-mm-dd'
    });
</script>   