DayPilot.DatePicker Constructor

Declaration

DayPilot.DatePicker(options);

Parameters

  • options (object) - holds properties and events that will be used to initialize the DatePicker instance

Example

<span id="start"></span> <a href="#" onclick="picker.show(); return false;">Change</a>

<script type="text/javascript">
    var picker = new DayPilot.DatePicker({
        target: 'start', 
        pattern: 'yyyy-MM-dd', 
        onTimeRangeSelected: function(args) { 
            dp.startDate = args.date;
            dp.update();
        }
    });
</script>