Welcome Guest, Not a member yet? Register   Sign In
Generating Dates & Times in Forms
#1

[eluser]RobbieL[/eluser]
This isn't really a CI specific question, but I'm doing the project in CI so I thought I'd give here a shot.

I've got a simple form that the user needs to fill out. In it, the user has to select a time and a date. I was planning on having them both done with drop down boxes. Two drop down boxes for the time (one with the hour, one with the minutes) and three for the date (one for the day, month and year).

So what's the easiest way of getting this done? For the times, I thought a FOR loop going from 00 to 23 for the hours, and 00 to 59 for the minutes. But I'm pretty stumped for the date. Is manually entering them into the drop down box selection the best way?


Messages In This Thread
Generating Dates & Times in Forms - by El Forum - 10-11-2007, 11:23 AM
Generating Dates & Times in Forms - by El Forum - 10-11-2007, 11:41 AM
Generating Dates & Times in Forms - by El Forum - 10-11-2007, 12:30 PM
Generating Dates & Times in Forms - by El Forum - 10-11-2007, 12:40 PM
Generating Dates & Times in Forms - by El Forum - 10-11-2007, 04:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB