COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: bi4u2 on 24 May 2012 09:58:02 AM

Title: Date Data Format
Post by: bi4u2 on 24 May 2012 09:58:02 AM
Hello, we are on Cognos 8.4.1 and MS SQL Server 2008. I have a date field that is already in the following format '2011-12-31'. When I try to apply any of the Data Format properties, nothing changes. For example specifying a date style Short, Medium, Long or Specifying the Ordering of Month, Day, Year. This column has already been cast to a date from a datetime in Framework Manager.
Title: Re: Date Data Format
Post by: Gyana on 25 May 2012 12:13:04 AM
Try to cast in the Report level. in Date data item use cast function.
Cast( [data item],date)
Title: Re: Date Data Format
Post by: bi4u2 on 25 May 2012 09:28:19 PM
Yes, I tried to cast in the report as well as the FM. I ultimately went back to the FM model and did a datename function & cast to create a query item that forced the data item to display like 'March 31, 2012'.