LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

String Formating Date

I want to string format a timestamp to: fri, 4 may 2017 13:34:55 -0000
Well, that's really easy with the following instruction: %a, %d %B %Y %H:%M:%S -0000

 

But unfortunately I am using a Dutch OS and I get: vr, 4 mei 2017 13:34:55 -0000, which obviously is language specific. There are no language independent formatting codes listed in the manual. Doe anyone have a suggestion better than manually mapping these values?

0 Kudos
Message 1 of 6
(4,166 Views)

I think, there shouldn't be "unspecific" language settings. You could see your wish to have an abreviated english date to be coincidental to the fact, that LabVIEW is an original english "speaking" software. Your specification could as well be to have a french abreviated date string. Would you ask then for language unspecific formatting codes?

 

Greets, Dave
0 Kudos
Message 2 of 6
(4,158 Views)

Abrev Date Strings.png

 

This list is quite nice to edit... Smiley Very Happy

Greets, Dave
0 Kudos
Message 3 of 6
(4,145 Views)

You could exclude the day of the week and convert the month to a numeric.  04-MAY-2017 could be displayed as (20170504 or 2017-05-04) followed by the time.

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 4 of 6
(4,133 Views)

Agree with minions!  See - https://xkcd.com/1179/

Message 5 of 6
(4,113 Views)

Thanks for your input, all. It was not my idea to format the timestamp this way. It is a webservice that requires this type of timestamp.

0 Kudos
Message 6 of 6
(4,057 Views)