/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php function days_since ($time) { $startdate = strtotime($time); $presentdate = time(); $days = round(($presentdate - $startdate)/86400); return $days; } ?>