Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

database date format

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
i want to equate a date attribute to the current date and display the rows. the problem is the date format displayed in microstrategy is not compatible with my database format. making a prompt and selecting also doesn't work. so i created a filter with date attribute id value exactly custom value where i used to ApplySimple function.

"ApplySimple("cast(#0 as date format "yyyymmdd")",date)" where date will give the current date. my backend database is teradata and my date field is in that format only. when i execute the report it says character string conversion failed. can anyone had experience similar to this. please help.

thanks
 
can you create a custom filter instead on the data attribute that looks something like "date@desc = sysdate" (substitute e teradata specific syntax)...
 
Josent,
Try to exchange the inner double (") to a single one (')
and the comma (,) to dot comma (;).
ApplySimple("cast(#0 as date format 'yyyymmdd')";date)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top