使用int strtotime ( string $time [,int $now ])函数转换为整数时间类型p
插入时关系型数据库时使用字符串日期(字符串$格式[,int $时间戳])函数date("Y-m-d H:i:s ",strtotime(str));C#:
如果需要计算,先转日期时间:
日期时间dt = Convert。today time(str);
再日期时间转string:
dt.tostring()