I want to compare current date\'s day and month with subscription date\'s day and month only. ex.current date(d-m) = 3-6 and I want compare it with any other
This may help you
$sdate = $row['subscription_date']; $date1 = date("m-d"); $date2 = date("m-d",strtotime($sdate)) ; if ($date1 == $date2) { }