![]() |
Input date - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Input date (/showthread.php?tid=65079) |
Input date - davy_yg - 04-26-2016 Hello, I am trying to create an input form for date how to do so? I prefer using animative date like you just need to click the date number and choose the year in order to input the date. How to do so ? PHP Code: <html> RE: Input date - InsiteFX - 04-27-2016 PHP Code: $today = date("F j, Y, g:i a"); // March 10, 2001, 5:16 pm RE: Input date - mwhitney - 04-27-2016 You can use a date input, but support is browser-dependent (see http://html5doctor.com/the-woes-of-date-input/ ). The alternative is to use a JavaScript plugin to generate the datepicker. An older article on doing this (which also covers using the plugin as a fallback if the native datepicker is not supported) can be found here: https://www.tjvantoll.com/2012/06/30/creating-a-native-html5-datepicker-with-a-fallback-to-jquery-ui/ |