Reputation: 1373
I have to add form in which user can select date and time, but I want user can only select date and time of future not past date time, for the eg user have to select date time for an appointment.
How can I do this?
Upvotes: 0
Views: 120
Reputation: 566
You can easily instantiate Datepicker widgets with http://api.jqueryui.com/datepicker/ and using .formatDate(), can limit your input date and time to maxDate.
Upvotes: 2