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.
Use % I instead of %H, %H is for 24h clock.
Refer to this forum post for the answer:
In short, replace the %H with %I to go from 24 hour format to 12-hour format.
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.