LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

scan from string

Solved!
Go to solution

Hi,

Why i can't get back the correct time under the yr 1970 instead of 7:59:59.000 AM 1/1/1970 always..

Attach with the vi

 

regards,

0 Kudos
Message 1 of 5
(2,557 Views)

Do you mean you want Time followed by Date, instead of Date followed by Time?

That will depend on the order of your input - if time is first in the input, it will be first on the output. The format string only says how to interpret the information, not what order to put it in.

Formate Date/Time String could be your friend here...

 

Ian

0 Kudos
Message 2 of 5
(2,552 Views)

Hi,

If you run the vi, then can see the different.

Attach with my pic.

 

Thanks and regards,

0 Kudos
Message 3 of 5
(2,548 Views)

Works OK for me!

time.PNG

 

Maybe you have some regional settings that are upsetting it?

EDIT: Have a look in the help file for the scan from string. Near the bottom of the page it mentions localization (or maybe localisation if we localise ourself out of North America Smiley Happy).

 

Message 4 of 5
(2,541 Views)
Solution
Accepted by simon76

Hi Simon,

 

I had the same problem and the best workaround (until now) seems this:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 5
(2,535 Views)