Dates

H

hogan

I have a situation where I need to calculate the age of a product when it was
purchased. I have a linked excel spreadsheet that includes the year of the
product as well as the date it was purchased. The year field is text and the
date purchased is in mm/dd/yyyy format. Except for changing the field
formats, is there a way to extract just the yyyy from the date purchased
field to do the calculations?
 
P

pietlinden

I have a situation where I need to calculate the age of a product when it was
purchased. I have a linked excel spreadsheet that includes the year of the
product as well as the date it was purchased. The year field is text and the
date purchased is in mm/dd/yyyy format. Except for changing the field
formats, is there a way to extract just the yyyy from the date purchased
field to do the calculations?

use DatePart
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top