LeahD Posted February 19, 2013 Share Posted February 19, 2013 Hello! I'm creating a booking system on my website and I'm unsure how to get a calendar to appear to allow the user to choose a date a time that they can book. This is what I am using at the moment- <p><b>Choose Date:</b><br /><input type='date' value="Now" name='Date'/> <p><b>Choose Time:</b><br /><input type='time' value="Now" name='Time'/> Quote Link to comment https://forums.phpfreaks.com/topic/274655-calendar/ Share on other sites More sharing options...
AyKay47 Posted February 19, 2013 Share Posted February 19, 2013 So, what's the problem? Quote Link to comment https://forums.phpfreaks.com/topic/274655-calendar/#findComment-1413244 Share on other sites More sharing options...
LeahD Posted February 19, 2013 Author Share Posted February 19, 2013 The code I'm using doesn't show what is entered as being date nor time Quote Link to comment https://forums.phpfreaks.com/topic/274655-calendar/#findComment-1413245 Share on other sites More sharing options...
Barand Posted February 19, 2013 Share Posted February 19, 2013 Use a date picker component so you have control over the format of the date field. You can use a dropdown for times. Quote Link to comment https://forums.phpfreaks.com/topic/274655-calendar/#findComment-1413309 Share on other sites More sharing options...
LeahD Posted February 19, 2013 Author Share Posted February 19, 2013 Thank you Barand. Have the date picker up and running! Quote Link to comment https://forums.phpfreaks.com/topic/274655-calendar/#findComment-1413382 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.