|
Re: Previous Month [message #501290 is a reply to message #501267] |
Tue, 01 December 2009 18:37 |
|
Michele,
Try
BirtDateTime.month(BirtDateTime.addMonth(BirtDateTime.today( ),-1),2)+ " "+
BirtDateTime.year(BirtDateTime.addMonth(BirtDateTime.today() ,-1))
Jason
Michele wrote:
> Hi.
> My report contains a Dinamic Text which displays the Month of the Year
> and the Year, ex: "December 2009"
>
> At the moment it displays the Current month - using the following
> expression:
> BirtDateTime.month(BirtDateTime.today(),2)+"
> "+BirtDateTime.year(BirtDateTime.today())
>
> Since this report is run the first day of the month, I have to change my
> expression to display the Previous month, ex: "November 2009".
>
> Note that in January should display "December 2009" - but if that's too
> complex I can manually adjust my report once :roll: .
>
> Thanks.
> Michele
|
|
|
|
Powered by
FUDForum. Page generated in 0.01702 seconds