Currently in my code I am using following setter method to save current date and time to DB. But its saving only date, not time.
emp.setJoiningDate(new java.sql
From oracle documentation on java.sql.Date
...SQL Date values do not have a time component.
If you want time use java.sql.Timestamp