java - Hours and seconds are lost when storing a date in the database -
i'm storing date (java.util.date) in mysql database, before storage have
mon feb 11 18:17:41 cet 2013
after storage :
2013-02-11 00:00:00.0
the database field declared way :
`date_creation` date default null,
and i'm using innodb engine
what can avoid loosing time? thanks.
http://dev.mysql.com/doc/refman/5.1/en/datetime.html - alter info type in mysql datetime.
java mysql sql date jdbc
No comments:
Post a Comment