COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: EArumugam on 14 Oct 2009 11:49:49 PM

Title: Change the date format
Post by: EArumugam on 14 Oct 2009 11:49:49 PM
How the change the date format for Paramdisplayvalue('date').

I need to display the selected date in Header of the report page.

when i used paramdisplayvalue, it display inthe format Oct 12, 2009.

How to change the format of date to MM/DD/YYYY.

* i change the date format in property but failed.

its urgent.

Title: Re: Change the date format
Post by: Gopinath on 15 Oct 2009 03:04:24 AM
Create a data item in your query using your prompt parameter like

cast(?date? as date)

Display this data item in the report header and change the format.
Title: Re: Change the date format
Post by: dumbell on 17 Oct 2009 11:59:36 AM
As they say there are diff ways to go to Rome, cast(to_char(....) also helps.
Title: Re: Change the date format
Post by: sriniv on 10 Aug 2011 01:08:43 PM
Data item idea working but the prompt is converting as required prompt. Basically this date prompt is optional prompt in the report, Any clue how i can make this as optinal date prompt ?