This works for me!

<cfset x="00:00:00">

<select name="time">

<cfloop from="1" to="96" index="i">

            <cfoutput>

            <option
value="#timeformat(x,'HH:mm:ss')#">#timeformat(x,'h:mm: tt')#

            </cfoutput>

            <cfset x = dateadd("n",15,timeformat(x))>

</cfloop>

</select>

Ferg

  _____  

From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 10, 2004 10:30 AM
To: CF-Talk
Subject: dynamic time picker

hi all!

i need to make a

<select>
    <option value="00:00:00">12:00 am
    <option value="00:15:00">12:15 am
</select>

that has all the times from midnight to 11:45 pm and not have to hand
type them all...how would you do it? is this already done, and i can
dl it? if not, ill hand type them all and then have that for future
use, but im SURE someone has done this?

thanks

--
tony

Tony Weeg
human.
email: tonyweeg [at] gmail [dot] com
blog: http://www.revolutionwebdesign.com/blog/

Check out http://www.antiwrap.com to send websites to your friends.

  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to