Solved

Date time

Posted on 2014-04-04
3
231 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
Comment Utility
just chnage the format to this
#TimeFormat(QGetLogEntry.TimeOccurred,'hh:mm tt')#
0
 
LVL 19

Accepted Solution

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

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

Author Closing Comment

by:lulu50
Comment Utility
Thank you
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

PROBLEM: How to add your own buttons to the bottom toolbar with paging info ( result count ). While creating a cfgrid, I ran into an issue where I wanted to embed my own custom buttons where the default ones ( insert / delete / etc… ) are for aes…
CFGRID Custom Functionality Series -  Part 1 Hi Guys, I was once asked how it is possible to to add a hyperlink in the cfgrid and open the window to show the data. Now this is quite simple, I have to use the EXT JS library for this and I achiev…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

763 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

10 Experts available now in Live!

Get 1:1 Help Now