php - jquery date and time picker -
I am using a jquery date and time picker in my project where the user can create an event. In the Jquery datepicker, I have the option to select today's date and future date, not the previous date which is good for an event creation website. But I stuck with the time picker. For example, if I'm in the event creation page (assuming the time is 9.30 time) and choose the date 2010-08-05, then I click on the area of time, but the time zone shows the time that Already in the past i.e. before 9.30, I can not allow the user to select the time that is before the present time. How can I save it? Or is there no way to show the last time? I am using php, if I decide to validate the use of php, how should I validate, at that time should I use the user as the basis for checking the selected time? Users can come from any country, so I should know what time is the last time for a user.
I use this, I use the first option and I can use the last option where the users are two fields which are good, as we know the duration is good, In the first field, the second field based on I / P works, but still does not solve the issue of my last time.
Please tell me whether I
< Code> & gt; & Gt; Users can come from any country, so I should know what is the last time for a user.
If I understand you well then it is best to check in client side (javascript).
Here is sample code. TimePicker ({startTime: new date} // current time pass}}
Then, time picker past And will start the current time.
Comments
Post a Comment