TwistPHP Documentation

getPersonAge

File path: dist/twist/Core/Utilities/DateTime.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

getPersonAgeGet the age of a person in years from their date of birth

Parameters

Name Type Description
$dateDOBstringn/a

Return Values

void — No return information has been documented for this function.

Example

<?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);