[wd_asp elements=’search’ ratio=’100%’ id=1]

Ignore year to show birthdays – date format PHP

2nd April 2017

Php - Dates & Time

php codehaven

This code works for all years, ignoring the year, as its every year your birthday, not just matching one year!

// $dob = '1999-04-02';
$time = strtotime($dob);
if(date('m-d') == date('m-d', $time)) {
echo "";

}