SproutCMS

This is the code documentation for the SproutCMS project

function datetimeMySQL()

Checks if a value is a datetime in MySQL format (YYYY-MM-DD HH:MM:SS)

Usage

void Validity::datetimeMySQL ( string $val );

Example

$valid->check('start_date', 'Validity::datetimeMySQL')

Arguments

  1. string $val
    Value to check

Exceptions thrown

Return value

  • void