选择语言 :

 Core_Valid::date

Tests if a string is a valid date string.

boolean Core_Valid::date( string $str )

参数列表

参数 类型 描述 默认值
$str string Date to check
返回值
  • boolean
File: ./core/classes/valid.class.php
public static function date($str)
{
    return (strtotime($str) !== false);
}