DayPilot.DatePicker(options);
<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>