function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sissyphussissyphus 

When does a week start?

When using the Sales Force time shortcuts like "THIS_WEEK" and "LAST_WEEK", what day does a week end on?
JimRaeJimRae

According to the help files:

For Enterprise, Unlimited, Professional, and Developer Editions, the week is defined by the Locale drop-down list in your personal information settings at Setup | My Personal Information | Personal Information. For Group and Personal Editions, the week is defined by the Locale setting in the company profile at Setup | Company Profile | Company Information. For example, when the Locale is US English, a week runs Sunday to Saturday, whereas with UK English, a week spans Monday to Sunday.

Jim
Mysti, Developer DocumentationMysti, Developer Documentation
For additional information about date literals, see: <meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 12"><meta name="Originator" content="Microsoft Word 12">
http://www.salesforce.com/us/developer/docs/api/index_CSH.htm#sforce_api_calls_soql_select_dateformats.htm

Good luck!