date format in Direct database request
I have a report with direct database request.
I have a date prompt..I am storing the date in a Presentation Variable named pv_date.
In the direct database request, I have a where clause:
WHERE business_date IN ( @{pv_date}{'1/1/2013'} )
when I run open dashboard for the first time, its throwing me an error near TIMESTAMP.
WHERE business_date IN( TIMESTAMP ''2013-01-01 00:00:00'')
AND ALSO When I run this report from dashboard after choosing a date say 2/20/2013, I see the query as:
WHERE business_date IN (2013-02-20 00:00:00)
and hence throwing error.
Its throwing error in both the cases. How do I change the format in WHERE clause..
Ideally, I want the query to be WHERE business_date IN ('2/20/2013') or Business_date IN ('2013-02-20')