LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert 1900/1904 date string to seconds

I have a DLL that gives me seconds elapsed based on the 1900 date system. Labview seems to offer a palette of sub vi's based on the 1904 date system. I need to be able to type a date in a string format like, 3/6/2004, convert it to seconds elapsed on the 1900 scale, and then pass it on to the DLL I interface with. I also have to go in the reverse direction, I have to take a 1900 based number and convert it to a string representing the date. Is there anything already existing that will do this for me? Thanks
0 Kudos
Message 1 of 2
(3,044 Views)
Times in LabVIEW are based on 1904. If you need to communicate with the DLL, just add/subtract the number of seconds between 1900-1904. I believe that's 4*365*24*60*60.
0 Kudos
Message 2 of 2
(3,044 Views)