System:Form:isDate

From Aspen Documentation

Validates that the current value of a field is a date string that may be converted using the strtotime php function.

Since 1.0

Arguments

boolean isDate (string $field)

field
Name of the form field currently loaded.

Returns

Returns boolean.

Examples

Example:

if(!$this->APP->form->isDate('field_name')){
     $this->APP->form->addError('field_name', 'An error message');
}