Language Specific Date/Time String Formatting Independent from OS Locale

Updated May 3, 2018

Reported In

Software

  • LabVIEW

Issue Details

I want to string-format a timestamp to: fri, 4 may 2017 13:37:00. I have tried the following format string: %a, %d %B %Y %H:%M:%S, but as I am using a Dutch OS I instead get: vr, 4 mei 2017 13:37:00.

There are no language independent formatting codes listed in the LabVIEW manual. Does anyone have a solution?

Solution

There can not be an unspecific language setting as there is no standard language.

The code below shows how you can create your own specific solution, independent of your operating system's regional setting. Replace the name of the months and weekdays to your selected language.

WAS THIS ARTICLE HELPFUL?

Not Helpful