未被识别为有效的datetime类型rt,什么意思啊[解决办法]datetime date=datetime.now;string date =datetime.now.tostring("yyyy-MM-dd")+" 00:00:00";可以将时间转换为string类型的。