Ok ScallioXTX
You could add a parameter to the function and depending on the value of that parameter change the output.
Yes thats what I thought it makes sense, just got to code it now (:
You can change it to get the number of years etc. Look at the manual of DateTimeInterval, of which $diff is an instance
I’ll have a look into it, good learning exercise thanks.
Anyway, thanks again for your time, really helped me I appreciate it.
Until the next thread, chat soon
Barry