Answer the question
In order to leave comments, you need to log in
Insert datetime(java) to DB via NetBeans doesn't update time until you rebuild project?
NetBeans+Spring+java+mssql We
insert values from the form, as well as the current date and time we write to the database
java.util.Date Date = new java.util.Date();
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String date2 = sdf.format(Date);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question