Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Week of Month - Mon-Sun 1

Status
Not open for further replies.

jcl5

IS-IT--Management
Dec 6, 2002
89
GB
I am using this formula in my report to group by week of month but I need Monday to be the first day of the week.
Can anyone help please?

Datepart("ww",{LINKS.LINK_DATE})+1
- Datepart("ww",{LINKS.LINK_DATE} - Day({LINKS.LINK_DATE})+1)

Thanks

jcl5
 
You can use a third argument to specify the dayofweek:

datepart("ww",{table.date},2)

A fourth argument can be used to specify the first week of the year. The default is "1", which is the week that January 1 falls in. See CR help for details.

-LB
 
Thanks for this - can you also tell me how to display the date of the first day of each week?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top