If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

DateDiff

Started by Kam2718, 24 Mar 2009 08:20:34 AM

Previous topic - Next topic

Kam2718

I am new to cognoise and I have a question I hope I can get answered.

First off I am using Report Stupio and my first problem was the Date of birth field.  I found a way to remove the timestamp off of the end.  cast([dob],date).  With that being said I now need to figure out the age of the person.  I have been playing around with DateDiff but I keep getting an error. 

datediff([DOB],getdate() )            Any suggestions would help.

Thanks in advance,

blom0344

Why not try the Cognos functions like '_days_between' instead of using native T-sql functions? The native functions should also work when activated in the package, but you do need to check the correct syntax of datediff..