If you were given two dates, that is start date and end date and You want to find the difference between two dates in PHP.
Its very simple and easy to calculate the difference between two dates.
Read More
If you were given two dates, that is start date and end date and You want to find the difference between two dates in PHP.
Its very simple and easy to calculate the difference between two dates.
Read More
For further actions, you may consider blocking this person and/or reporting abuse
Otutu Chinedu Kingsley -
Ashish prajapati -
Navneet Verma -
Saloni Agarwal -
Top comments (2)
Use this function, this will give you exact duration between to timestamps. Make sure the start point is in UNIX timestamp format.
A simple trick is to convert dates to timestamp and then subtracting, you'll get difference in seconds.
$date_stamp = strtotime($date);
Another option is date_diff
php.net/manual/en/function.date-di...