I need to add the current date into a prepared statement of a JDBC call. I need to add the date in a format like yyyy/MM/dd.
yyyy/MM/dd
I\'ve try with
Simply in one line:
java.sql.Date date = new java.sql.Date(Calendar.getInstance().getTime().getTime());