What I want to do is to take a datetime format information in my database and take the datetime from now and substract the datetime in ym database to know when the data was registered in my database.

My idea is to find a way to have the year,day,hour... seperated in some variable and do a substraction.

Question 1 :
Is there a way to do it without spliting all the data in some variable ( or an array) ?

Question 2: How I do to solve my problem? I cant figure out how.

Thx