/**
 * Test for common date format
 *
 * @access	public
 * @param	string
 * @return	boolean
 */
function is_date_format($date)
{
    return is_string($date) and (!empty($date) and (int) $date != 0) and (is_date_english_format($date) or is_date_db_format($date));
}
Example #2
0
/**
 * Test for common date format
 *
 * @access	public
 * @param	string
 * @return	boolean
 */
function is_date_format($date)
{
	return (is_string($date) AND (!empty($date) AND (int)$date != 0) AND 
	(is_date_english_format($date) OR is_date_db_format($date)));
}