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

Date Formula.

Status
Not open for further replies.

g33kgrrl

Programmer
Jun 1, 2007
5
US
I know this should be easy, but I must be brain-dead today.

I need to find all of my employees who are at least 70 years old as of 6/1/2007. This is the formula I am using in my selection criteria:

{PAEMPLOYEE.BIRTHDATE} < {?effective date} - 70

It is not working. Thanks for your help.
 
Hi,
What database?


Usually date math is done in Days.

Try ( this works for Oracle DATE types):
Code:
({?effective_date}-{HR_CUR_RPTNG.BIRTH_DT})/365.25 > 70.0


[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Yep - I was using Oracle and this worked perfect. Thanks so much!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top