Karan Sadana
Karan Sadana

Reputation: 1373

how to get current date/time in PHP from user

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

Answers (1)

Zach
Zach

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

Related Questions