I am trying to insert java.util.Date
after converting it to java.sql.Timestamp and I am using the following snippet:
java.util.Date utilDate = new java.util.Date();
java.sql.Timestamp sq = new java.sql.Timestamp(utilDate.getTime());
But this is giving me sq
as 2014-04-04 13:30:17.533
Is there any way to get the output without milliseconds?