CurrentDate on non-English systems?

BlitzMax Forums/BlitzMax Programming/CurrentDate on non-English systems?

Hi, the CurrentDate() function help says it returns the date like this:

DD MON YYYY (i.e. 10 DEC 2000).

What I'm wondering is if it's like that no matter what region Windows is set to. I'm assuming that it always returns English month names and the date always in that order. Can anyone confirm this please?

If it always returns dates in English in that format (i.e month name 3 chars long) then I can write some conversion functions that change the month to German, French, Spanish etc.

Thanks!

in finland gmt+2 result:
04 Feb 2008
and im thkingin that too..
hmm...

Tammikuu
Helmikuu
Maaliskuu
Huhtikuu
Toukokuu
Kesäkuu
Heinäkuu
Elokuu
Syyskuu
Lokakuu
Marraskuu
Joulukuu

^^ all months in finnish'

so Tammikuu is January, February is Helmikuu

EDIT: NOW 12 months...

Thanks. What is the name for February in Finnish please?

Helmikuu.

Btw, I found a resource that might interest you:
http://washingtonmo.com/1904/months.htm

Although I'm not sure if some of those words have evolved in the last 100 years.

@Zeke, am I missing something or are there 13 months there?!

I'm sure there are modules with localized months in them!

I'd want something like UNIX timestamp which used in php a lot, it's independent from language and easy to convert.

OK thanks all.

yeah 13 months, weird!

Brucey: I'm sure there are ;-) I don't mind writing my own as it's only for a couple of languages and I want it integrated with my code.

sorry folks.. now updated...

Hungarian months with the day of the week that date falls on ;-)
Executing:locale_example.debug

2007-január-01 ... hétfő
2007-február-01 ... csütörtök
2007-március-01 ... csütörtök
2007-április-01 ... vasárnap
2007-május-01 ... kedd
2007-június-01 ... péntek
2007-július-01 ... vasárnap
2007-augusztus-01 ... szerda
2007-szeptember-01 ... szombat
2007-október-01 ... hétfő
2007-november-01 ... csütörtök
2007-december-01 ... szombat

Process complete


<EDIT> Except the forums don't like some of the UTF-8 characters :-p

http://www.blitzbasic.com/Community/posts.php?topic=66191#740528

??

It would be better if CurrentDate() was replaced with something that returned the month (as well as day and year) in numeric format. That way you could output the text to anything you wanted.

I think Brucey has a module for date stuff but I'm semi-drunk at the moment so I could be wrong.

http://washingtonmo.com/1904/months.htm

Look at the Indian months..
I take it they are Native American?

Danish months in order:

Januar
Februar
Marts
April
May
Juni
Juli
August
September
Oktober
November
December

CurrentDate() on a Danish installed winXP gives the following output "04 Feb 2008"

Dutch months

Januari
Februari
Maart
April
Mei
Juni
Juli
Augustus
September
Oktober
November
December

I think he's asking what Blitzmax's CurrentDate() returns, rather than just asking for month names in various languages.