pande Posted July 20, 2009 Report Share Posted July 20, 2009 Hi Everybody, I am having two strings in date and time format like 20.07.2009 17:00:20 PM and 20.07.2009 17:02:00 PM. I want to substract the string so as to get the date and time difference. Can anybody help me? . I am using Labview 8.0 Pande Quote Link to comment
crelf Posted July 20, 2009 Report Share Posted July 20, 2009 I am having two strings in date and time format like 20.07.2009 17:00:20 PM and 20.07.2009 17:02:00 PM. I want to substract the string so as to get the date and time difference. I'd convert them to a timestamp datatype and then work on them. Quote Link to comment
crossrulz Posted July 20, 2009 Report Share Posted July 20, 2009 Hi Everybody, I am having two strings in date and time format like 20.07.2009 17:00:20 PM and 20.07.2009 17:02:00 PM. I want to substract the string so as to get the date and time difference. Can anybody help me? . I am using Labview 8.0 Pande If you look in the timing pallet, there is a Date/Time to Seconds which takes in a cluster. Parse out your strings, fill in the clusters, convert and subtract. Quote Link to comment
Antoine Chalons Posted July 21, 2009 Report Share Posted July 21, 2009 Hi Everybody, I am having two strings in date and time format like 20.07.2009 17:00:20 PM and 20.07.2009 17:02:00 PM. I want to substract the string so as to get the date and time difference. Can anybody help me? . I am using Labview 8.0 Pande Hi, You might want to use the "scan from string" primitive (to turn your date string into a timestamp), then cast your timestamp to DBL (actually "second") and then substract the 2 DBLs to have the timne difference in seconds. See this: hope this helps 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.