<?php $tarih = strtotime("2020-05-02"); $bugun = strtotime(date('Y-m-d')); $hafta = ($bugun - $tarih) / (60*60*24) / 7; echo floor($hafta); ?>