DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+3 =
Submit