I have datetime in my database and I want to check against the current datetime. I want to display the different between them. and If my database expiry. The php show not show the datetime.
However, I am getting weird number the sum wont tally.
echo $diff->format('%d-%m-%y %h:%i:%s');
What is the different between diff and sub