File path: dist/twist/Core/Utilities/DateTime.utility.php
Namespace: Twist\Core\Utilities
Extends: Base
getPersonAge
— Get the age of a person in years from their date of birth
Name | Description |
---|---|
$dateDOB | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$dateDOB = '06-12-2012 09:30:00';
//Call the function getPersonAge with the example vars
Twist::DateTime() -> getPersonAge($dateDOB);