COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: Rovinesh on 22 Oct 2012 09:44:49 AM

Title: remove timestamp
Post by: Rovinesh on 22 Oct 2012 09:44:49 AM
Hello experts,

I'm trying to make a performance report with charts. It mostly works, but on every x-axis, i use dates. When I run the report, it shows the Date with the timestamp like this: YYYY-MM-DD 00:00:00:00. When I format the date in Data Format, it doens's change. Can someone help me with this?

thanks in advance!
Title: Re: remove timestamp
Post by: HalfBloodPrince on 23 Oct 2012 01:21:41 AM
Try this. go to to format , in date format put pattern as YYYY/MM/DD
Title: Re: remove timestamp
Post by: Rovinesh on 23 Oct 2012 03:19:16 AM
sorry, that doesnt work either.
Title: Re: remove timestamp
Post by: HalfBloodPrince on 23 Oct 2012 03:37:09 AM
then  try this  cast([time stamp column],date)
Title: Re: remove timestamp
Post by: Rovinesh on 23 Oct 2012 04:45:09 AM
how do I use the cast function? i'm kinda new with this.
Title: Re: remove timestamp
Post by: sureshsugu on 23 Oct 2012 08:25:04 AM
Hi,
      You can change the date format to YYYY-MM-DD. if it is oracle use to_char([dataitem],'YYYY-MM-DD') . if it is SQL server use convert(varchar(10),[dataitem]). I hope it helps.

Thanks,
Suresh.
Title: Re: remove timestamp
Post by: Rovinesh on 23 Oct 2012 08:41:52 AM
Hi,

thank you all for your answers, but i cant seem to get it right.
What i am trying to do is create a chart, with at the x-axis using dataitem Date. When i run the report, i get YYYY-MM-DD 00:00:00:000. I cant remove the timestamp with data format. The answers given don't work with me as i get several errors when i try to validate the query. When I changed the Source Type in Properties from Member Caption to Data Item Value, it removes the timestamp, but the days are displayed as yeardays from 001 to 366.

Does anyone know how to solve this?

thanks in advance!!!!
Title: Re: remove timestamp
Post by: mtirpude on 25 Oct 2012 03:08:00 AM
Hi Rovinesh,

Can you connect me using Team viewer so that I can have a look at it and resolve it. This does not looks like a big issue.

Regards,
Manish | +919673990644
www.infocepts.com | mtirpude@infocepts.com
Title: Re: remove timestamp
Post by: Rovinesh on 26 Oct 2012 01:51:50 AM
Hi,

Thank you all for your help. It finally worked. I deleted the chart and made it again and it worked.
Again thanks for your help!!!!!!