Start Free Trial
How to find previous sunday's date in T-SQL
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
8/22/2022 - Mon
Plans and Pricing
Certified Expert Program
© 1996-2023 Experts Exchange, LLC. All rights reserved. Covered by US Patent