Jump to content

Date Diff...


Piyush
 Share

Recommended Posts

There are several ways to do it but I would just convert the time string into a timestamp using strtotime() and then subtract the two timestamps from each other.

Link to comment
Share on other sites

You have to use strtotime() to convert them into timestamps first, then since timestamps are just numbers you can subtract them normally.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...