Hi, i've got the following code in a query:
DATEADD(wk, DATEDIFF(wk, 0, SH_StartDateTime), 0)
it works ok in the way that it returns:
08/11/2004
08/11/2004
08/11/2004
15/11/2004
15/11/2004
15/11/2004
22/11/2004
and so on....
The 8th, 15th and 22nd being Monday's
But for some reason it's including all SH_StartDateTime from the day before aswell i.e. Sunday.
so the actual data grouping is Sun-Sat instead of Mon-Sun
Any ideas on how to solve this?
Many Thanks
David
DATEADD(wk, DATEDIFF(wk, 0, SH_StartDateTime), 0)
it works ok in the way that it returns:
08/11/2004
08/11/2004
08/11/2004
15/11/2004
15/11/2004
15/11/2004
22/11/2004
and so on....
The 8th, 15th and 22nd being Monday's
But for some reason it's including all SH_StartDateTime from the day before aswell i.e. Sunday.
so the actual data grouping is Sun-Sat instead of Mon-Sun
Any ideas on how to solve this?
Many Thanks
David