You have two options, here is the one I prefer...

FORM PAGE
---------------------------------
<select name='hour' of values 1-12>
<input type='radio' name='timeOffset' value='0' checked>AM
<input type='radio' name='timeOffset' value='12'>PM


RECEIVING PAGE
----------------------------------
// convert to military time
<cfset form.hour = form.hour + form.timeOffset>

.. do whatever else you need to ...




+-----------------------------------------------+
Bryan Love
  Macromedia Certified Professional
  Internet Application Developer
  Database Analyst
Telecomunication Systems
[EMAIL PROTECTED]
+-----------------------------------------------+

"...'If there must be trouble, let it be in my day, that my child may 
have
peace'..."
        - Thomas Paine, The American Crisis



-----Original Message-----
From: Tangorre, Michael T. [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 2:41 PM
To: CF-Talk
Subject: CF and Time AM and PM


Hello again,  :-)

I have a form in which a user enters a time, but I need to be able to
decipher between AM and PM.. Can they include this with their time?
What is the best way to do this, I will be storing this in a datetime 
field
in a SQL DB.

Thanks,

Michael T. Tangorre
==========================
Resident Assistant - Brick
Web Applications Developer
A.U. Webteam Slave  :-)
AIM: CrazyFlash4==========================


______________________________________________________________________
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to