Method: v::date

Checks for valid date

Info

Syntax

v::date($date)

Parameters

Return (boolean)

Example


$date = v::date('Yesterday');
echo $date;
// output: timestamp of the same time yesterday

$date = v::date('2009-10-11');
echo $date;          
// output: 1255212000

if(v::date('32.12.2009')) echo 'That is a valid date';
// output: nothing, because that's not a valid date