jedoublefunk
MIS
I'm trying to write a couple of formulas that determinethe first day of last month and the last day of last month.
Currently I'm trying to use the following formulas:
MinDate: DateSerial(Year(currentdate),Month(currentdate)-1,1)
MaxDate: DateSerial(Year(currentdate),Month(currentdate),1 – 1)
It seems pretty obvious to me, but for MaxDate I'm getting the error "The ) is missing".
I'm using Crystal XI.
Anyone know where I'm going wrong? Also, I'm assuming this also works for leap years, but can anyone confirm it?
Thanks!
Currently I'm trying to use the following formulas:
MinDate: DateSerial(Year(currentdate),Month(currentdate)-1,1)
MaxDate: DateSerial(Year(currentdate),Month(currentdate),1 – 1)
It seems pretty obvious to me, but for MaxDate I'm getting the error "The ) is missing".
I'm using Crystal XI.
Anyone know where I'm going wrong? Also, I'm assuming this also works for leap years, but can anyone confirm it?
Thanks!