Maybe you've experienced it already. In my opinion Windows XP returns weird long calendar dates for Cataluña (Spain) and Sweden.
This is what GetDateFormat (Windows API) returns as the long date for Cataluña: dimecres, 27 / febrer / 2008 (Wednesday, February 27, 2008), so with a forward slash, which is the separator for the short date. I think, it should return: dimecres, 27 de febrer de 2008. And when the name of the month starts with a vowel, it should be (for instance): dilluns, 27 d'octubre de 2008.
And here comes what Windows XP returns for the Swedish long date: den 27 februari 2008. But in almost every online Swedish newspaper I find dates that include the name of the day, instead of the word "den", for instance: onsdag 27 februari 2008.
There are a few possibilities:
Comments from Swedish and Catalonian/Spanish programmers are very welcome. You may want to test it, running the code below:
This is what GetDateFormat (Windows API) returns as the long date for Cataluña: dimecres, 27 / febrer / 2008 (Wednesday, February 27, 2008), so with a forward slash, which is the separator for the short date. I think, it should return: dimecres, 27 de febrer de 2008. And when the name of the month starts with a vowel, it should be (for instance): dilluns, 27 d'octubre de 2008.
And here comes what Windows XP returns for the Swedish long date: den 27 februari 2008. But in almost every online Swedish newspaper I find dates that include the name of the day, instead of the word "den", for instance: onsdag 27 februari 2008.
There are a few possibilities:
- Windows is simply wrong
- Windows is correct, but old-fashioned
- These bugs appear only in the Dutch language version of WinXP
Comments from Swedish and Catalonian/Spanish programmers are very welcome. You may want to test it, running the code below:
Code:
#INCLUDE "WIN32API.INC" FUNCTION PBMain() AS LONG LOCAL szDate AS ASCIIZ * 64, st AS SYSTEMTIME LOCAL sText AS STRING GetLocalTime st GetDateFormat 1027, %DATE_LONGDATE, st, "", szDate, SIZEOF(szDate) sText = REMOVE$(szDate, CHR$(0)) & $CRLF GetDateFormat 1053, %DATE_LONGDATE, st, "", szDate, SIZEOF(szDate) sText = sText & REMOVE$(szDate, CHR$(0)) MSGBOX sText, 64, " Date testing..." END FUNCTION
Comment