Hi everyone,
I need a formula that will return the date of the first day of the month three months ago. So, if this is January, I would need October 1, 2007 to be returned.
I'm trying to do this, but it gives me an error:
Any help would be greatly appreciated!
Thanks!
Joseph
I need a formula that will return the date of the first day of the month three months ago. So, if this is January, I would need October 1, 2007 to be returned.
I'm trying to do this, but it gives me an error:
Code:
select Month(CurrentDate)
case 3 : Date(Year(CurrentDate)-1,12,1)
case 2 : Date(Year(CurrentDate)-1,11,1)
case 1 : Date(Year(CurrentDate)-1,10,1)
default: Date(Year(CurrentDate), Month(CurrentDate)-3,1)
Any help would be greatly appreciated!
Thanks!
Joseph