system
#1
Hi All,
How are you. I am trying to achieve.BO Universe First Day of Previous Week,Last Day of Current Week,Last Day of Previous Week
Struggling to get weekly ones,appreciate your inputs
FirstDayofLastWeek
=RelativeDate(getdate();-DayNumberOfWeek(getdate())-7)
FirstDayofCurrentWeek
=RelativeDate(getdate();-DayNumberOfWeek(getdate()))
I have done for Monthly its working fine
WORKING
Start of Previous Month (date)
dateadd(m,-1,cast(convert(char(7),getdate(),23)+β-01β as datetime))
Start of Current Month
cast(convert(char(7),getdate(),23)+β-01β as datetime)
I have done for Monthly but struggling get Weekly
appreciate your inputs
Thanks
bobdude247 (BOB member since 2013-12-12)
system
#2
Hi,
A post in this older topic can help:
Marek Chladny (BOB member since 2003-11-27)
system
#3
HI Marek,
Thanks for the link,will work on it, actually I am working on SQL Server environment
Thanks
Chandra
bobdude247 (BOB member since 2013-12-12)