LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LAbView timestamp format conversion

Solved!
Go to solution

Hi

Got your contact from your post in community.

I need your help in converting the time stamp format of LABVIEW. I am right now getting the data in seconds elapsed w.r.t 1904 (e.g. 3576256122.245), but I need to convert this time stamp format to YYYY/MM/DD Hr:Min:Sec.milisec.

Would like to request, if you can suggest me something on this.

Regards

Hardeep

University of Michigan 

0 Kudos
Message 1 of 6
(7,729 Views)
Solution
Accepted by topic author Hardeep

In the "Timing" folder under the "Functions" pull down on the diagram page there is a function called Format Date/Time String that will convert the timestamp to a string defined by a configuration number

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



Message 2 of 6
(7,718 Views)

Hi

Thanks for your reply.

0 Kudos
Message 3 of 6
(7,713 Views)

@LV_Pro Do you have any example code for this ? As I am new to LAbView, this will help me.

0 Kudos
Message 4 of 6
(7,706 Views)

Hi Hardeep,

 

you could go with FormatIntoString like this:

check.png

(In my experience people most often need more string formatting than just a timestamp so you could easily add more inputs to this function!)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 6
(7,656 Views)

Thanks GerdW

0 Kudos
Message 6 of 6
(7,647 Views)