LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert Date/Time in String format to Timestamp format

Hi 

 

I need to now how to  convert Date/Time in String format to Timestamp format

 

I have time in this format 14:56:13 its as string  also I have another string sec time 14:55:13

 

what I need to do is to subtract first time from sec time and the result should be 20 sec

 

14:56:13 - 14:55:53 = 20 

 

who I can do that, since the time that as have is as string 

 

thanks for you help  

 

 

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

Hi Elyan,

 

you surely have heard about the ScanFromString function, don't you?

 

check.png

With timestamps you can do simple math like subtract them…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,919 Views)

thanks alot

Spoiler
 
0 Kudos
Message 3 of 3
(2,909 Views)