这种格式10-7-2010
可以用php进行验证吗? 有了这个脚本:在DD-MM-YYYY中验证日期“格式在php
$array = explode('-', $str);
$day = $array[0];
$month = $array[1];
$year = $array[2];
$Valid = checkdate($month, $day, $year);
我有这样的错误:
checkdate() expects parameter 2 to be long
我如何可以验证这样的格式? 在此先感谢
在这里工作! http://codepad.viper-7.com/0idtfL – Artefacto 2010-07-15 15:39:10