且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

MySQL:如何检查字符串是否为有效的DATE,TIME或DATETIME

更新时间:2023-11-29 08:21:28

You could parse the date according to the format you want to use and then call checkdate to test if it's a valid date. Make sure you read the comments on http://php.net/manual/en/function.checkdate.php.

相关阅读

推荐文章