I think a creative use of either of these functions might work - see the apex reference for more info:
toStartOfWeek - Returns the start of the week for the Date that called the method, depending on the context user's locale. For example, the start of a week is Sunday in the United States locale, and Monday in European locales. For example:
format method for datetime - choose the right format, and this would include you return the day of the week I think
I am looking for the exact same thing. We have a custom field in Opportunities called Service Date, and would like to have a custom formula field that calculates the day of the week that Service Date falls on.
Try the format method of the DateTime object. See p. 188 in the latest Apex Reference Manual, and click go to the java.sun.com link to see details on using the format string.
toStartOfWeek - Returns the start of the week for the Date that called the method, depending on the context user's locale. For example, the start of a week is Sunday in the United States locale, and Monday in European locales. For example:
format method for datetime - choose the right format, and this would include you return the day of the week I think
I am looking for the exact same thing. We have a custom field in Opportunities called Service Date, and would like to have a custom formula field that calculates the day of the week that Service Date falls on.
Anya