Hi
I used the following code to find the first date from the previous month e.g. 01/05/2006
I'd like to return the date for the monday of the previous week so e.g. 19/06/2006 and also friday's date of the previous wek e.g. 23/06/2006
any ideas ?
thanks
rich
I used the following code to find the first date from the previous month e.g. 01/05/2006
I'd like to return the date for the monday of the previous week so e.g. 19/06/2006 and also friday's date of the previous wek e.g. 23/06/2006
any ideas ?
thanks
rich
Code:
=left(format(DateSerial(iif( Month(DateTime.Now)=1, Year(DateTime.Now)-1, Year(DateTime.Now)), iif( Month(DateTime.Now)=1, 12, Month(DateTime.Now) - 1), 1),"dd/MM/yyyy"),10)