From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert 24 time display format numeric value to a string value?

I have set the display format of the numeric control to Absolute Time format. Then I would like convert the time into string and then write into a table control.

0 Kudos
Message 1 of 3
(2,693 Views)

Have a look at the To Timestamp function:

 

http://zone.ni.com/reference/en-XX/help/371361J-01/glang/to_timestamp/

 

You can then use Format Date/Time String to format to your heart's content.

 

timestamps.png

 

ts-results.png

---
CLA
0 Kudos
Message 2 of 3
(2,684 Views)

The Format Into String could also be a good use here.  Just set the format to be the same as you have for the numeric indicator.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 3
(2,658 Views)