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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating a new field to be used in a filter 1

Status
Not open for further replies.

MzKitty

Programmer
Oct 28, 2003
254
US
I need to create a new date field based on an employee's hire date 99/99/9999. I need to insert the year from today into the year for the hire date. If someone's hire date is 12/07/1987 then my new date field would be 12/07/2005. How is this done in Cognos?

Cathy
 
Try this calculation:

number-to-date(Year(now()) * 10000 + month(Hiredate)* 100 + day(HireDate))


Simon Rouse
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top