Avatar of knuckle05
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?

Thanks!
Microsoft SQL Server

Avatar of undefined
Last Comment
BrandonGalderisi

8/22/2022 - Mon