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

Calculating age based on dates 1

Status
Not open for further replies.

shiela

Programmer
Jul 19, 2000
4
US
I'm trying management tenure by month based on hire date or promotion date.

 
Subtracting an earlier date from a later date will give you the number of days between them. If you want more specific advice, we'll need a more specific question. Rick Sprague
 
Thanks. Basically I have an employee, their orginal hire date, and their effective date to a position (manager level). I also have a fiscal calendar with the month ending date. I need to get a beginning and end of fiscal month tenure. So should I hire and effective date from the end of month dates to get a monthly tenure? I tried to subtract them and I got an error.

 
You may have gotten the error because the values weren't Date types. You can't do arithmetic on strings that contain date values. What kind of error did you get, and what data types were you using? Rick Sprague
 
Thanks. I found the datediff function and you're right my dates were not formatted right.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top