Help in C to calculate the age

I would like to write a C program that calculates the age of a car. But the program should know that it calculates from the date of registration until today. So I should not have to enter today’s date in the output. and i only would to calculate the age so not month and day

Do anyone have a hint or anyone have a c Programm that do this ?

Wjy nobody answer to this ?