Hi Folks,
I'm trying to genrate a date string like so:
[Time].[All Times].[FY2009].[Q2].[OCT].[10]
... so I'm trying to use the simple date formatter like so:
String formatter = new SimpleDateFormat("'[Time].[All Times].[FY'yyyy'].[Q1].['MMM'].['dd']'").format(new Date());
Here's my problem:
1. How can I calculate the quarter ? eg Q1 - Q4
2. How can I get FY2009 ? for OCT2008 ?
3. How can I get the month MMM to come out in all uppercase ?
I'm trying to genrate a date string like so:
[Time].[All Times].[FY2009].[Q2].[OCT].[10]
... so I'm trying to use the simple date formatter like so:
String formatter = new SimpleDateFormat("'[Time].[All Times].[FY'yyyy'].[Q1].['MMM'].['dd']'").format(new Date());
Here's my problem:
1. How can I calculate the quarter ? eg Q1 - Q4
2. How can I get FY2009 ? for OCT2008 ?
3. How can I get the month MMM to come out in all uppercase ?