Edit this page

dates Array

Specifies a list of dates, which are shown in the time drop-down list. If not set, the TimePicker will auto-generate the available times.


<input id="timepicker" />
    dates: [
        new Date(2000, 10, 10, 10, 0, 0),
        new Date(2000, 10, 10, 10, 30, 0)
    ] //the drop-down list will consist only two entries - "10:00 AM" and "10:30 AM"
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article