I have the following doubt related how to create a format date in Java.
In a Java application I have to create a date (the value have to be the current date) formatted in this way: 2015-05-26 (yyyy-mm-dd)
So I know that I can obtain the current date simply build a new java.util.Date
object, this way:
Date dataDocumento = new Date();
but how can I specify my date format?
Tnx