Correct future date picking

Hello.
I’m trying to implement in my website a feature that allows the user to add records to my database and in one of my forms the user need to pick future date.

For example:

Select box 1 - the day:

<select name="startDay" class="form-control" data-toggle="tooltip" title="יום יציאה">
<option value="Today">Today</option>
<option value="Tomorrow">Tomorrow</option>
<option value="In 2 days">In 2 days</option>
</select>

Select box 2 - the hour: (from 6:00 to 24:30)
The loop creates option only for an hour which is not already passed!
for example, if the hour now is 21:00, the loop will only show 21:00, 21:30, 22:00 and etc…

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.