How to get week ending date of a given date returned from a DateAdd expression

Posted by PushCode on Stack Overflow See other posts from Stack Overflow or by PushCode
Published on 2010-03-16T19:41:35Z Indexed on 2010/03/16 19:51 UTC
Read the original article Hit count: 226

Filed under:
|

Not sure how to take my current expression and get the week ending date of the week.

My current expression returns the date, one week from today.

DateAdd(DateInterval.WeekOfYear, 1, today())

What I want to do instead is return the end date (Saturday) of that week instead.

What do I need to add to this expression to get the desired result?

Thanks!

© Stack Overflow or respective owner

Related posts about dateadd

Related posts about sql-server