LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Independently country settings timestamp

Solved!
Go to solution

Hi,

 

Is there a simple way, to "always" get a timestamp in the english language? I live in Holland, and my timestamp gives: 10-OKT-2012 but it should be: 10-OCT-2012. Now i can change the country settings and get the right timestamp, but i don't want, because my software will be installed on several "dutch" PC's...

 

I can get the month number and hook it up to an array to get the right "english" month, but isn't there an easier way?

 

Best regards,

Thijs Boeree

0 Kudos
Message 1 of 4
(2,745 Views)
Solution
Accepted by topic author ThijsBoeree

I think that you will need to create a lookup table as you suggested.

 

There is a discussion on the LAVA forums about common date formatters that you may want to follow:

 

http://lavag.org/topic/16221-what-are-the-most-common-date-formatters/page__fromsearch__1

 

 

0 Kudos
Message 2 of 4
(2,718 Views)

I think i have to make a lookup table indeed, i get frustrated sometimes over this 100 millions ways to write a timestamp... But, oh well!

0 Kudos
Message 3 of 4
(2,705 Views)

I certainly agree. Using anything other tha ISO-8601 in my mind is just asking for trouble.

 

See my signature below for a format string to convert a timestamp to and from a string with no ambiguity (uses zulu or GMT time).

 

 

0 Kudos
Message 4 of 4
(2,693 Views)