Is there a better way of doing this?
asof = CAST(DATEADD(week, DATEDIFF(week,'19000101',CURRENT_TIMESTAMP),
'1899-12-30T19:00:00') AS DATE)
Basically, I am trying to use previous week's Saturday as my filter on Proc Sql. No matter what day I run this query it should give me the date(not timestamp) of last Saturday
Thank you!