Skip to main content
Solved

Calculate the years worked based on career start date

  • October 17, 2019
  • 5 replies
  • 30 views

I’m looking to estimate a person’s retirement date based on their career start date, this would be using the assumption that they would work 35 years following their first job.

Best answer by Lisa_Gervais

Or wrap the YEAR function around the rest:

YEAR(DATEADD(Date, 35, "years"))

Hi Justin that worked thanks!

5 replies

Justin_Barrett
Forum|alt.badge.img+21

This should do it (replace Date with the name of the field that has the person’s career start date):

DATEADD(Date, 35, "years")

  • Author
  • Inspiring
  • October 18, 2019

This should do it (replace Date with the name of the field that has the person’s career start date):

DATEADD(Date, 35, "years")

Thanks Justin! is it possible to just get the year returned rather than the day/month and time stamp?


Forum|alt.badge.img+18

Thanks Justin! is it possible to just get the year returned rather than the day/month and time stamp?


DATETIME_FORMAT(
   DATEADD(Date, 35, "years"),
   YYYY
)

Justin_Barrett
Forum|alt.badge.img+21

Or wrap the YEAR function around the rest:

YEAR(DATEADD(Date, 35, "years"))

  • Author
  • Inspiring
  • Answer
  • October 18, 2019

Or wrap the YEAR function around the rest:

YEAR(DATEADD(Date, 35, "years"))

Hi Justin that worked thanks!