Need help displaying time frame (months, weeks, days) betwee

General discussions related to php

Moderators: macek, egami, gesf

Post Reply
johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: Need help displaying time frame (months, weeks, days) be

Post by johnj » Thu Apr 18, 2013 7:33 pm

You need tobe sure what datediff will produce. For e.g. If the output of datediff is seconds then to convert that to minutes, you need to divide the datediff output value by 60. Similarly you need to do it for days, months, weeks etc. take a look at the examples in the php manual. http://php.net/manual/en/function.date-diff.php

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests