数据库中储存的格式是年-月-日为什么会报错这个
time data '' does not match format '%Y-%m-%d'你的time参数值为空字符。转换不了。
你数据库里有时间字段为空的数据,转换之前先判断非空,再转换