CFML dateFormat to include hours, seconds, and am/pm

I am trying to format a timestamp which reads:

3/16/2010 11:12:00 AM in the database (SQL).

In ColdFusion if I know I use #dateFormat(variable, "mm/dd/yyyy")# to get 03/15/2010, but how do I include the hours, minutes, seconds, and am/pm?  I tried #dateFormat(variable, "mm/dd/yyyy hh:mm:ss")# and it doesn't appear to be giving the right information.
traportAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

_agx_Commented:
DateFormat() only formats _dates_.  You need to use two functions: DateFormat() for the date part and TimeFormat() for the time part.  

#DateFormat(variable, "mm/dd/yyyy")#
#TimeFormat(variable, "hh:mm:ss tt")#
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
erikTsomikSystem Architect, CF programmer Commented:
can use this format
#DateFormat(now(),"mm/dd/yyyy")# #TimeFormat(now(), "h:mm tt")#
0
traportAuthor Commented:
Thanks ya'll!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ColdFusion Language

From novice to tech pro — start learning today.