12-21-2015 10:40 AM
Hello everyone,
I needed some help figuring why i can't use %p to denote A.M and P.M on my outut screen. When i run the application i get the time but not the denote am/pm.
I've attached both the image and the VI.
Solved! Go to Solution.
12-21-2015 10:50 AM
The 12 hour clock used %I for the hour.
The correct format string is %I:%M:%S %p
12-21-2015 10:50 AM
12-21-2015 10:50 AM
Refer to this forum post for the answer:
http://forums.ni.com/t5/LabVIEW/Using-Format-Date-Time-String-Function-Vi/td-p/1581082
In short, replace the %H with %I to go from 24 hour format to 12-hour format.
12-21-2015 10:51 AM
Thanks alot!
12-21-2015 10:53 AM
Thanks alot!
Since i was testing in the morning i never saw anything passed 12 P.M
12-21-2015 01:00 PM - edited 12-21-2015 01:04 PM
Have one on me Bill!
Bad format strings can be a pain. You simply cannot use "H" and expect a "%p" to make any difference! "%H" denotes a 24hour clock where AM and PM are meaningless and capitolization is important to format strings.