I have an associate in another country that was testing my application and ran across some serious flaws in the Day of hte week field...
So he wrote a new function, but has been unavailable lately.
So I'm just posting this here to see if anyone can tell me why this returns PM instead of "Sunday" or Monday etc....
I don't quite understand what the hex number's are doing.
Previous function worked fine "On our little island" (America)
hehe...
At least he has a sense of humor...
Thanks, there is some urgency to this as the app is already on a bout 10 shareware sites, but luckily only pointing back to MY webserver..
Scott
------------------
Scott
mailto:[email protected][email protected]</A>
So he wrote a new function, but has been unavailable lately.
So I'm just posting this here to see if anyone can tell me why this returns PM instead of "Sunday" or Monday etc....
I don't quite understand what the hex number's are doing.
Previous function worked fine "On our little island" (America)

At least he has a sense of humor...

Code:
Function DayOfTheWeek() Export As String '// get date format in "dddd, MMMM dd, yyyy" '// e.g. Monday, June 26, 2000 Local uTime As SYSTEMTIME Local lNum As Long Local saDay As Asciiz * 64 Local saMonth As Asciiz * 64 GetLocalTime uTime lNum = &H2A + (uTime.wDayOfWeek) -1 GetLocaleInfo %LOCALE_USER_DEFAULT, lNum, saDay, SizeOf(saDay) lNum = &H38 + (uTime.wMonth - 1) GetLocaleInfo %LOCALE_USER_DEFAULT, lNum, saMonth, SizeOf(saMonth) Function = Trim$(saDay & ", " & saMonth & " " & Trim$(Str$(uTime.wDay)) & ", " & Trim$(Str$(uTime.wYear))) End Function
Thanks, there is some urgency to this as the app is already on a bout 10 shareware sites, but luckily only pointing back to MY webserver..
Scott
------------------
Scott
mailto:[email protected][email protected]</A>
Comment