Click here to Skip to main content
15,881,709 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I want to create a date and time selector for the users. Where they can select a start date and time and a end date and time using PHP or HTML preferable, or if needs be JQuery

The following HTML code displays properly but it doesnt work in Internet Explorer and when i include it with the rest of the form it doesnt submit into the Mysql database. Any help guys ?

Enter an event start date and time:<br>
<input type="date" name="event_start_date_time" max="3000-01-01">
<input type="time" name="event_start_date_time"><br><br>
Enter an event end date and time:<br>
<input type="date" name="event_start_date_time" min="2015-01-01">
<input type="time" name="event_start_date_time"><br><br>
Posted
Updated 4-Apr-15 14:08pm
v2
Comments
ramyajaya 4-Apr-15 22:37pm    
Input type time and date is not supported in ie . You can also check error console of ie for exact error

1 solution

Check this out: jQuery DateTimePicker[^]
 
Share this answer
 
Comments
Ray-Rae 5-Apr-15 15:57pm    
@PeterLeow you rock !!! Life saver

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900