If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Converting datetime into date for ODBC datasource

Started by s.aravindkumar, 04 Oct 2017 07:35:13 AM

Previous topic - Next topic

s.aravindkumar

Hi,

I am using cognos report studio and
I have used Optim(IBM Product) archive file as a datasource which will connecting to cognos through Open data manager/ODM(IBM Product).
In database I have the data as 11-NOV-98 but in ODM its showing as Nov 11, 2010 12:56:34 so in cognos also its showing same as ODM.

So to convert the date time to date I was trying Cast but that is not working so can someone suggest how to convert datetime into date ?

Thanks and Regards,

Aravind Kumar Sekar

MFGF

Quote from: s.aravindkumar on 04 Oct 2017 07:35:13 AM
...So to convert the date time to date I was trying Cast but that is not working so can someone suggest how to convert datetime into date ?

Hi,

Can you tell us what "that is not working" actually means? Do you get an error? An incorrect result? No result? Something else? Can you provide details?

What exact syntax did you use for your Cast expression?

MF.
Meep!

BigChris

cast([Your DateTime Field], date) should do the job for you