This project is no longer maintained and no further public releases are planned.

No further support will be given.

Feel free to fork the git repository.

isOlderThan

Checks if a person is older than the specified number of years by parsing a given date.

Version added

1.5.0

Properties

.dateFormat

The format of the date.

Data type

String | cObj

Version added

1.5.0

Important

With PHP < 5.0 you can only use "d", "m", "y" to specify the format. With PHP > 5.0 Formhandler uses DateTime:createFromFormat to parse the date.

.years

Number of years to check for.

Data type

Integer - cObj

Version added

1.5.0