Solved

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

Posted on 2009-05-07
4
2,606 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Hi, I am very much excited today since I'm going to share something very exciting Tool used for Analytical Reporting and that's nothing but MICROSTRATEGY. Actually there are lot of other tools available in the market for Reporting Such as Co…
Hello, In my precious Article  (http://www.experts-exchange.com/Database/Reporting/A_15280-Create-Project-in-Microstrategy-Part-I.html)we saw the Configuration part for Microstrategy which included Metadata Creation and DataSource Preparation as …
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

729 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