ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RFC 3339 time format

Solved!
Go to solution

Hello everyone!
I get from some server time in string type, for examp "2017-11-17T23:36:05.188503497Z". I have found that it is RFC 3339 format. How can I convert it to LabView timestamp type?

0 Kudos
Message 1 of 3
(3,604 Views)
Solution
Accepted by topic author Tragen

TimeConversion.png

But, just be aware of system decimal separator (on my PC dot "." didn't work with the time string, b/c I have comma as separator).

0 Kudos
Message 2 of 3
(3,585 Views)

If you prepend the format string with %.; making it:

%.;%<%Y-%m-%dT%H:%M:%S%9uZ>T

then LabVIEW will always expect a decimal point, independent on your configured system locale.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 3 of 3
(3,542 Views)