I am trying to convert java.util.Date
into java.sql.Date
with below function but this function is giving the time a s 00:00:00.000.
private java.sql.Date getCurrentDate() {
java.util.Date today = new java.util.Date();
return new java.sql.Date(today.getTime());
}
please help me how can I get both date and time in java.sql.date. thanks