Avatar of knuckle05

asked on 

How to find previous sunday's date in T-SQL

Hi All,

Based on the current date using GETDATE(), I'd like to determine the date of the previous Sunday, and if the current date IS Sunday, then that date would be returned.

Can someone help me?

Microsoft SQL Server

Avatar of undefined
Last Comment

8/22/2022 - Mon