From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
10-28-2020 04:54 AM
When I use Format Date Time to get the current date with full name of the month (%d-%B-%Y) I got result with month's name in German, do you know how to get it in English?
OS language is English, but location german...
10-28-2020 05:31 AM
Hi,
set the location to UK...
LabVIEW respects your local regional settings, so it gives German month names. When you need to be independent from OS settings you could implement your own conversion from month number to name...
10-28-2020 05:48 AM
app will run on various machines in Switzerland, it's not an option....
10-28-2020 05:56 AM
10-28-2020 06:01 AM
@tcie wrote:
app will run on various machines in Switzerland, it's not an option....
It's the only option.
It's simple: either live with the names given by the OS, or convert month number to your own name.
Why isn't that an option?
10-28-2020 06:17 AM
That I know, I wonder if there's an elegant way to do that 😉
10-28-2020 06:32 AM
@tcie wrote:
That I know, I wonder if there's an elegant way to do that 😉
That depends a bit on how you're going to use it.
If you (or the user) specify the formatting from a file, you'd have to search and replace the resulting string.
If you have a VI that takes a timestamp, and outputs a string, it can be a lot simpler. An enum could also be used...
10-28-2020 08:54 AM
10-28-2020 12:01 PM
like I've told changing it is trivial, but I was hoping that there's build in way to do it
10-28-2020 12:09 PM
Hi tcie,
@tcie wrote:
but I was hoping that there's build in way to do it
The "built-in way" is to rely on the OS regional settings (either configured by the user or by the company admin).
When you want something different than the OS regional settings then you need to program it: you already got solutions…
@tcie wrote:
like I've told changing it is trivial
Yes, even wiebe's example is trivial.
You can pimp it up by implementing configuration files and options for your users to change the language/localization of your software…