Solved

Date time

Posted on 2014-04-04
3
232 Views
Last Modified: 2014-04-04
Hi,

I have my time saved as military time:
13:00:00.000
what I want to display is this:
1:00 PM

right now I get this which is wrong:
13:00 PM

not sure how to fix it to display it correct like this:
1:00 PM

 <input type="text" name="TimeOccurredTxt" id="TimeOccurredTxt" value="<Cfoutput>#TimeFormat(QGetLogEntry.TimeOccurred,'HH:mm tt')#</cfoutput>" style="height:23px;width:195px;text-align:center;"/> 

Open in new window

0
Comment
Question by:lulu50
  • 2
3 Comments
 
LVL 19

Expert Comment

by:erikTsomik
ID: 39978236
just chnage the format to this
#TimeFormat(QGetLogEntry.TimeOccurred,'hh:mm tt')#
0
 
LVL 19

Accepted Solution

by:
erikTsomik earned 500 total points
ID: 39978260
Also to remove a leading zero just use this format

#TimeFormat(QGetLogEntry.TimeOccurred,'h:mm tt')#
0
 

Author Closing Comment

by:lulu50
ID: 39978948
Thank you
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Coldfusion to PHP conversion utility 4 151
Coldfusion print HTML tables 4 56
Can I force a page timeout / redirection? 12 57
Coldfusion scheduled tasks as one task 2 79
The technique is by far very Simple! How we can export the ColdFusion query results to DOC file?  Well before writing this I researched a lot in Internet but did not found a good Answer anyways!  So i thought now i should share my small snippet w…
Hi, Even though I have created this Tutorial on My personal Blog, Some people might not able to find my website, So here i am posting it again Today, from the topic it is very clear that i will be showing you here the very basic usage of how we …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now