have you tried military time? That's usually the simplest way for me in
mySQL.

<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: Les Mizzell [mailto:[EMAIL PROTECTED]
Sent: Friday, June 02, 2006 4:25 PM
To: CF-Talk
Subject: mySQL "Time" Field Question


Having some problems getting a time inserted correctly into mySQL

Basically, user needs to input time as "1:22 PM" or "1:22 AM".

#CreateODBCTime(form.value#) isn't the answer

Regardless of what I've tried so far though, I can't get the AM/PM to
take. This value does need to be stored as a time value, because it's
sorted at some point. Entering "1:22 PM" or "1:22 AM" gets saved as
"1:22 AM".

The field in mySQL is currently set to "time".

I've obviously not had enough coffee yet today and missed too much sleep
last night. What did I overlook?






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:242153
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to