Here\'s my code:
java.util.Date TODAY = new java.util.Date(); SimpleDateFormat SDF = new SimpleDateFormat( \"YYYY-MM-DD\" ); System.out.println ( SDF.fo
You want to use the yyyy year and dd day of the month.
yyyy
dd
However, I suggest you migrate to JSR-310 which is built into Java 8 and available for earlier versions of Java. The same code is
System.out.println(LocalDate.now());
prints
2105-02-02