Windows Date Locale Test

BlitzMax Forums/BlitzMax Programming/Windows Date Locale Test

Hi folks,

Microsoft's online documentation is just confusing the ..... out of me... I have here a small test that displays a set of localized dates, trying a different locale text for each.
def (en_US)         : 2007-Mar-15
g1  (de-DE)         : 2007-Mar-15
g2  (German-Germany): 2007-Mrz-15
g3  (de_DE)         : 2007-Mar-15
def (en_US)         : 2007-Mar-15

On Linux/Mac you use xx_XX style. According to online MSDN, you can do this too on Windows, but it don't work here. Instead I seem to need to use full text descriptions. I am on Win2k.
I wonder if someone with XP/Vista can run this and see if you get a different answer, for the gx examples.
The file is available from HERE

(Note, there is a delay after it has run - 5 secs - so the window stays up for a bit).

Thanks in advance ;-)

I get the same as above on XP

For all of the tests on Vista x86, I get 2007-Mar-15 (i.e. I get 2007-Mar-15 for German-Germany, as oppose to 2007-Mrz-15).

That's nice... Vista is totally different... joy...

Silly question...

...why don't you just get it to return numeric results and leave it to us to convert them to strings?

It does that anyway... this was meant to be using the OS-specific localised text.
Anyhoo... there's already an option to set your own text for it, if you need to - for months, days etc...

Too much to expect Windows API to be similar each release? :-p