jgarciallamas Posted December 1, 2004 Report Share Posted December 1, 2004 Hi all, Trying to work with date and time with this format: mm/dd/yyyy hh:mm:ss (This is the input I have) What I would like to get: Output = (date1/time1) - (date2/time2) I have to find the way to get the difference between to dates/times and I'm not able to do it in Labview although I'm almost sure that it's possible. Could you guide me a little bit, please? Thanks in advance. Kind regards. Jose. :worship: Quote Link to comment
Lukas Posted December 1, 2004 Report Share Posted December 1, 2004 Jose: I use this programm to calculate the estimate time of finish of our measurement. It is no exactly what you want but may be you can get some ideas from it. Download File:post-434-1101923491.vi Quote Link to comment
dswaine Posted December 1, 2004 Report Share Posted December 1, 2004 Trying to work with date and time with this format: mm/dd/yyyy hh:mm:ss (This is the input I have) 2817[/snapback] Hi Jose, I'm assuming that this is a string input you're dealing with. If so the 'Scan from String' and 'Date/Time To Seconds' functions can be used to obtain a numeric datetime. Attached vi (LV6.1) is variation of what I use. Convert the strings for the two times and then subtract. Download File:post-55-1101928881.vi Quote Link to comment
jgarciallamas Posted December 10, 2004 Author Report Share Posted December 10, 2004 Hi all, Sorry for my late answer, I was outside. Thanks a lot for your fast answer and your effective support. Kind regards. Jose. Quote Link to comment
AnalogKid2DigitalMan Posted December 10, 2004 Report Share Posted December 10, 2004 Recent post from the Developer Zone: http://sine.ni.com/apps/we/niepd_web_displ...source=external Quote Link to comment
Jim Kring Posted December 11, 2004 Report Share Posted December 11, 2004 Hi all, Trying to work with date and time with this format: mm/dd/yyyy hh:mm:ss (This is the input I have) What I would like to get: Output = (date1/time1) - (date2/time2) I have to find the way to get the difference between to dates/times and I'm not able to do it in Labview although I'm almost sure that it's possible. Could you guide me a little bit, please? Thanks in advance. Kind regards. Jose. :worship: 2817[/snapback] Here is something that might work for you. Download File:post-17-1102797995.zip Quote Link to comment
jgarciallamas Posted December 17, 2004 Author Report Share Posted December 17, 2004 Hi Jim, Thanks a lot for your help. Kind regards. Jose. 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.