Jump to content

Today Minus 18 Years Function


phpretard

Recommended Posts

Would this work?

 

$month = date("m");

$day = date("d");

$year = date("Y") - 18;

 

$date = $year.'-'.$month.'-'.$day;

 

 

Thank you!!!

 

function age_limit(){

$month = date("m");

$day = date("d");

$year = date("Y") - 18;

 

$date = $year.'-'.$month.'-'.$day;

 

return $date;

}

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.