function validateDateOfBirth($birthDay)
{
// convert user input date to string and +18 years;
// compare user input date with current date;
if (time() < strtotime('+18 years', strtotime($birthDay))) {
return 'Not 18';
}
return "user is older than 18 years old";
}