COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Gowtami on 29 Aug 2013 08:57:58 PM

Title: Integer to Date formatting in Reports studio
Post by: Gowtami on 29 Aug 2013 08:57:58 PM
Hi
I have a date field which is asigned as an integer in SQL database. I would like to show it as date (yyyy/mm/dd) in report studio report.
I tired many ways to convert from integer to date filed in framework manager level, transformer cube level and even in Report Studio but end up with nothing.
In Transformer cube we are not using this data item in Time dimension, it's in different dimension because of some cascade soure functionality otherwise I could have changed the date format in the cube level. Report studio doesn't allowing SQL functionalities because Framework manager model is using Cognos SQL(and i can't change this here).
Could anyone give me a solution to convert this integer type to date format in report studio report?

Thanks in advance!!
Gowtami
Title: Re: Integer to Date formatting in Reports studio
Post by: ramscognos on 30 Aug 2013 01:10:10 AM
please try with data type casting functions
Title: Re: Integer to Date formatting in Reports studio
Post by: Gowtami on 02 Sep 2013 12:07:40 AM
thanks for the reply ramscognos...
I tried cast and convert in all levels (Framework manager, Transformer and report), nothing worked
Title: Re: Integer to Date formatting in Reports studio
Post by: GGowtham on 03 Sep 2013 06:47:01 AM
Try Cast([dataitem],date) and apply date format to that particular date item.