I need to create a date that shows the previous month with just the month & year, not the day or time but actually use the month's name instead of the number. I used the following to get the previous month:
=DateSerial(iif( Month(DateTime.Now)=1, Year(DateTime.Now)-1, Year(DateTime.Now)), iif( Month(DateTime.Now)=1, 12, Month(DateTime.Now) - 1), 1)
But it returns:
11/1/2006 12:00:00 AM
And I want it to return:
November 2006
Is this possible in Reporting Services?
Thanks.
=DateSerial(iif( Month(DateTime.Now)=1, Year(DateTime.Now)-1, Year(DateTime.Now)), iif( Month(DateTime.Now)=1, 12, Month(DateTime.Now) - 1), 1)
But it returns:
11/1/2006 12:00:00 AM
And I want it to return:
November 2006
Is this possible in Reporting Services?
Thanks.