SproutCMS

This is the code documentation for the SproutCMS project

function dateMySQL()

Checks if a value is a date in MySQL format (YYYY-MM-DD)

Usage

void Validity::dateMySQL ( string $val );

Example

$valid->check('date_published', 'Validity::dateMySQL')

Arguments

  1. string $val
    Value to check

Exceptions thrown

Return value

  • void