Dateformat Example
Dateformat Example
The Java Dateformat class is used to format the date/time in Java applications. You can use the Dateformat class while generating the report to format the date/time in required format.
To format a date for the current Locale, use one of the static factory methods:
String myString = DateFormat.getDateInstance().format(myDate);
DateFormat provides many class methods for obtaining default […]