Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Can't format default date parameter as yyyy-MM-dd
Can't format default date parameter as yyyy-MM-dd [message #804591] Wed, 22 February 2012 20:06 Go to next message
Birt Unmitigated is currently offline Birt Unmitigated
Messages: 14
Registered: February 2012
Junior Member
I want my parameter default to be the first day of this year so I put in the formula:

BirtDateTime.firstDayOfYear(BirtDateTime.today())

And I'd like the default to be displayed in yyyy-MM-dd format so the users know what format to enter.

However when I run the preview it shows the default as "Jan 1, 2012".

Here is a screen shot of my parameter settings, and a screen shot of the report:

i . imgur . com / Q47QZ.png

i . imgur . com / yyDJm.png

(I wanted to embed these images but the forum says I can't use links yet. Add http to the beginning of these and remove the spaces to get to the images.)
Re: Can't format default date parameter as yyyy-MM-dd [message #805387 is a reply to message #804591] Thu, 23 February 2012 17:45 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

See attached example.

Jason

On 2/22/2012 3:06 PM, Birt Unmitigated wrote:
> I want my parameter default to be the first day of this year so I put in
> the formula:
>
> BirtDateTime.firstDayOfYear(BirtDateTime.today())
>
> And I'd like the default to be displayed in yyyy-MM-dd format so the
> users know what format to enter.
>
> However when I run the preview it shows the default as "Jan 1, 2012".
>
> Here is a screen shot of my parameter settings, and a screen shot of the
> report:
>
> i . imgur . com / Q47QZ.png
>
> i . imgur . com / yyDJm.png
>
> (I wanted to embed these images but the forum says I can't use links
> yet. Add http to the beginning of these and remove the spaces to get to
> the images.)
Previous Topic:First Report - How to multiply a dataset field by 100 and round?
Next Topic:Image from MIME encoded database record
Goto Forum:
  


Current Time: Wed Sep 03 07:15:46 GMT 2014

Powered by FUDForum. Page generated in 0.01530 seconds