+1 vote
in JAVA by
How do you format a date in Java?

1 Answer

0 votes
by

You can either use SimpleDateFormat class or joda-time library to format date in Java. DateFormat class allows you to format date on many popular formats. Please see the answer for code samples to format date into different formats e.g. dd-MM-yyyy or ddMMyyyy.

Related questions

+2 votes
asked Feb 8, 2020 in JAVA by rahuljain1
+2 votes
asked Jan 24, 2020 in JAVA by rahuljain1
...