COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: hauge9 on 16 Sep 2008 02:48:10 PM

Title: Date Prompt with Pass-Through SQL to Oracle
Post by: hauge9 on 16 Sep 2008 02:48:10 PM
I have a report built off of a pass-through SQL statement to Oracle. The query uses Start and End date parameters. Currently, I am sending strings to the SQL and converting the strings to dates. So the users have to enter strings in the correct format (e.x. 01-01-2008 05:00:00). This is what my parameter looks like in the SQL:

to_date(#prompt('start_time')#,'MM-DD-YYYY HH24:MI:SS')

I am trying to be able to use the Cognos date selector instead of having the user input strings. Anyone know how to do this? Thanks a lot.