YYYY vs yyyy in onrender() [message #996895] |
Thu, 03 January 2013 01:18  |
Eclipse User |
|
|
|
hi,
We have a report with excel format, which has date format set in onRender():
this.setDisplayValue(Formatter.format(this.getValue(),"M/d/YYYY"));
With this format set we have got date displayed as 12/31/2013 instead of 12/31/2012.
This is happening only for the week the new year falls in. I mean only for 12/30 and 12/31 2012.
We get the correct dates if we change our date format to M/d/yyyy.We get 12/31/2012 and 12/30/2012.
So is there any difference between m/dd/yyyy and m/dd/YYYY from BIRT perspective in Formatter.format().
Any info regrding this would be of great help.
Thanks,
KHP
[Updated on: Thu, 03 January 2013 01:53] by Moderator
|
|
|
|
|
Re: YYYY vs yyyy in onrender() [message #1016094 is a reply to message #997125] |
Mon, 04 March 2013 18:20  |
Eclipse User |
|
|
|
I also came across this error using 3.7, in my case it was for the date 1/1/1988, it would show 1/1/1987 but only with the format MM/dd/YYYY. After I updated the format to MM/dd/yyyy the date showed correctly. It also showed correctly when I removed the format. What is the difference between the two? 2012 and 1988 are leap years, sounds like bug, going to check bugzilla after this post.
|
|
|
Powered by
FUDForum. Page generated in 0.04507 seconds