COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: darners on 10 Jun 2015 08:13:36 AM

Title: Dates not showing correctly
Post by: darners on 10 Jun 2015 08:13:36 AM
Hope someone can help

I have a single table that I am bringing back from a sql 2012 database

In Framework Manager if I test the data I get the correct dates displaying

10 June 2015

When I run the report within Report studio I get

8 June 2015


I have attached the 2 screenshots

Any ideas gratefully received

Title: Re: Dates not showing correctly
Post by: BigChris on 10 Jun 2015 08:22:12 AM
Could the Report Studio results be cached? I'd try clearing your cache in your browser and running the report again. I'm clutching at straws a bit here, especially given the exact time matching on the two records...
Title: Re: Dates not showing correctly
Post by: darners on 10 Jun 2015 09:18:51 AM
Thanks for the reply, I did try clearing the cache

I gets even more weird now though

If I    day([field]) it gives me '10'

I am at a total loss

I have ended up extracting year, month, day from the original field and _maketimestamp(year,month,day)

That seems to do the trick. Not ideal but a work around until I find out why , and also check all other date fields
Title: Re: Dates not showing correctly
Post by: bdbits on 10 Jun 2015 10:18:00 AM
I would pull the SQL from FM and from RS and compare. If they are identical, I would open a support ticket.
Title: Re: Dates not showing correctly
Post by: darners on 11 Jun 2015 06:37:42 AM
Cheers, they were identical, PMR raised with IBM