Solved

Cognos 8.2--Pass date in correct format from date prompt?

Posted on 2009-05-07
4
2,591 Views
Last Modified: 2012-08-13
I have a date prompt on my prompt page that accepts a start date and end date for a period to search.  Normally I've used syntax like this:

between ?start_date? and ?end_date?

But this doesn't work for this date field.  The date requires a syntax like this:

[Referral_Date] in_range{2009-04-01 00:00:00.000:2009-04-30 23:59:59.999}

This will make it work, but I don't know how to make my date prompt pass the date like this?
0
Comment
Question by:IntercareSupport
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 12

Expert Comment

by:RWrigley
ID: 24340037
Assuming you need/want to use two date prompts, I'd use something like:
[Referral_Date] > ?StartDate? and [Referral_Date] < ?EndDate?

Altneratviely, you can use a "Date Range Prompt" instead of a "Date Prompt", and use
[Referral_Date] in range ?DateRange?
0
 
LVL 28

Accepted Solution

by:
burrcm earned 500 total points
ID: 24354131
Create a calculated column which displays the date as a date, not a datetime and use this for the prompt. Function - datetime-to-date.

Chris B
0
 

Author Closing Comment

by:IntercareSupport
ID: 31579071
Sorry, I forgot that I didn't close this out.  Thanks!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question