DATETIME Granularity - with PreparedStatement.setDate()
843859Aug 4 2005 — edited Aug 5 2005Hi-ya
I have defined a column as DATETIME, in my program I call the method setDate from the class PreparedStatement and pass a normal date object.
Now a date object in java has granularity down well past the milisecond, but when I execute this statement in my table I only see a date and no time.
This is actually what I am seeing (from PhPAdmin) 2005-08-05 00:00:00, maybe this is a bug from PhPAdmin but I doubt it.
What has happened to the time? Should I be calling another method?
thanks
kent