Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » [NOT A BUG!] DayOfWeek
[NOT A BUG!] DayOfWeek [message #27033] Tue, 22 June 2010 09:06 Go to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

DayOfWeek IMO returns wrong value which is different from right value with 1.

UPDATE: Function works well. One just has to remember that it returns unlocalized value, where 0 stands for Sunday, and so on.

[Updated on: Fri, 25 June 2010 11:48]

Report message to a moderator

Re: [BUG?] DayOfWeek [message #27042 is a reply to message #27033] Tue, 22 June 2010 20:13 Go to previous messageGo to next message
Tom1
Messages: 1212
Registered: March 2007
Senior Contributor
Hi,

I just wanted to let you know, I recently encountered a 'Regional settings' or something similar setup dialog, where the first day of the week was user configurable or at least selectable between Monday and Sunday.

So, this may not be a straight forward issue to solve without access to user's 'Regional settings' data, unless of course, if the result is only used for indexing a table with fixed Monday.. Sunday strings.

Best regards,

Tom
Re: [BUG?] DayOfWeek [message #27077 is a reply to message #27033] Thu, 24 June 2010 20:14 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Mindtraveller wrote on Tue, 22 June 2010 03:06

DayOfWeek IMO returns wrong value which is different from right value with 1.



What makes you think so?

Mirek
Re: [BUG?] DayOfWeek [message #27086 is a reply to message #27077] Fri, 25 June 2010 11:46 Go to previous message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

Sorry, Mirek, I have just completely forgotten that Sunday is a western standard for the first day of the week. Sad

It looks like I need to detect localized value for the 1st day of the week in U++.
Previous Topic: Whole word find string
Next Topic: WEB\SSL
Goto Forum:
  


Current Time: Thu Apr 25 05:31:09 CEST 2024

Total time taken to generate the page: 0.02427 seconds