原码为:

在后台打印的结果为:2016-07-15 16:26:42 ,正常,但是数据库中就只显示 2016-07-15,最后列表中出来的为2016-07-15 00:00:00.0

在后台打印的结果为:2016-07-15 16:26:42 ,正常,但是数据库中就只显示 2016-07-15,最后列表中出来的为2016-07-15 00:00:00.0
解决方案
10
数据库的时间为什么类型?
20
忘了数据库时间类型也有关系 mysql的话date只有年月日datetime才有时分秒