Jump to content

Date Diff...


Piyush

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...