0

I'm using D8 and I have a little problem with calculating age.

I have a taxonomy term "Animal". It has a "name" and "date of birth" field.

I have a content type "Test Results". It has a "date of test" and "animal" fields. The "animal" field is a reference to taxonomy term "Animal.

I would like to have another field that calculates animal's age at the time of test.

"date of test" - "date of birth" = "age at time of test".

I don't know how to do that. I've installed "computed field" but I don't know any PHP.

Can you help me?

  • Does anyone know how to do it? – Bona Dec 14 '19 at 17:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.