或acle sql:
select trunc( sysdate, Month ) month
from dual
java:
java.sql.Date sqlDate = resultSet.getDate("month");
log.info(sqlDate);
DateTime dateTime = new DateTime(sqlDate.getTime());
log.info(dateTime);
dateTime = dateTime.withMillisOfDay(0);
log.info(dateTime);
产出:
2012-01-01
2012-01T:00:00.000+07:00
2012-01T00:00:000+07:00
额外时间在哪里?