07-23-2015 01:39 PM
I'm using a Web Service in LabVIEW 2014. I have a message for requesting errors that have happened on the web server. When you request the read you get an array of a cluster which contains the error (as an error cluster) and a timestamp. According to the documentation here the Web Service sends timestamp data as a formatted string.
So now when I get my string data back I try to use the JSON unflatten, but I need to replace all timestamp data types with strings. But I still want the timestamp data not the string data.
So is there a canned function for reading the Web Services formatted string and converting it to the native timestamp data type? Attached is an example VI with a conversion that looks like it works but I know timestamps in strings can be a tricky thing, and I didn't know if my method lost some other information.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
Solved! Go to Solution.
07-23-2015 04:37 PM
Personally I would say you are pretty safe doing it the way you are. The timestamp in the string is a standard (ISO 8601) that is unlikely to change.
Mike...