Tips, Trick, Mengatasi Masalah Komputer, Membina Website & Programming

PHP Code : Kiraan Jumlah Hari Antara Dua Tarikh PHP

$now = time(); // or your date as well
$your_date = strtotime("2010-01-01");
$datediff = $now - $your_date;

echo round($datediff / (60 * 60 * 24));

0 comments: