LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get Date/Time String function problem

I have spent a considerable amount of time this morning trying to get the 'Get Date/Time String' function to work correctly.  Regardless of the 'date format' and 'want seconds' settings I can only get a string of the form yyyy-MM-dd and HH:mm!

 

I have just discovered that the function is dependent on the settings within 'Regional and Language Options' within the Windows XP control panel.  (See attached screen dumps of examples).

 

It therefore appears to be a dangerous function as there is no way of knowing what the control panel settings of a particular machine will be. 

 

Why is this limitation / dependence is not documented in the help files?

0 Kudos
Message 1 of 3
(2,650 Views)
0 Kudos
Message 2 of 3
(2,637 Views)

You should us the 'Format Date/Time String' function.

 There you can set the time formatter.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 3 of 3
(2,632 Views)