"Bluetin your solution relies on the fact that your computer time settings don't change.
Yen's as well but are a little bit more error proof."
How do you figure that?!
I am getting a date time STRING as data from any source in this case a datalogger.
When I put the string into a timestamp I can easily subtract 2 timestamps to get the time elapsed.
The point was how to put a string into a timestamp.
Parsing a string into a cluster and then converting the cluster to a timestamp also works as Yen has said.
But he blew off Brokenwire's suggestion as not simple when it is vastly simpler.
QUOTE(yen @ Aug 9 2007, 04:29 PM)
Thanks for the hint on pictures.
The scan Time from string method is great if you have version 8.X
The property node method works in 7.X
It probably also works in 6.X but I don't have any old version 6's
and I don't really want to get out my old version 5.1 just to see.
QUOTE(BrokenWire @ May 21 2007, 11:05 AM)
I was having the same wish for a function when I decided to do this for myself...that is convert a string to a LV Timestamp. What I did was prep the string data using the string commands so that it appears in the mm/dd/yyyy format. Create a timestamp control then create a property node for the NumText.Text (Property Node > Numeric Text > Text) and wire the date string to the node. Now when you pass the value from the control it will be formatted as a timestamp.
I hope this helps
By the way BrokenWire you don't need to reformat the string, you need to change the settings of the TimeStamp to match the string.
http://forums.lavag.org/index.php?act=attach&type=post&id=6606 http://forums.lavag.org/index.php?act=attach&type=post&id=6604 http://forums.lavag.org/index.php?act=attach&type=post&id=6605