Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel Calculate Age from Date of Birth

$dateOfBirth = '1994-07-02';

$years = Carbon::parse($dateOfBirth)->age;

  

dd($years);
Source by www.itsolutionstuff.com #
 
PREVIOUS NEXT
Tagged: #Laravel #Calculate #Age #Date #Birth
ADD COMMENT
Topic
Name
7+9 =