The DateFormat class in Java is used for formatting dates. A specified date can be formatted into the Data/Time string. For example, a date can be formatted into: mm/dd/yyyy. Date Format classes are not synchronized. A Locale object logically consists of the fields like languages, script, country, variant, extensions.
The Java Locale class object represents a specific geographic, cultural, or political region.
England Format: Tuesday, 5 January 2021 Italian Format: marted?, 5 gennaio 2021 Russian Format: ???????, 5 ?????? 2021 ?. French Format: mardi, 5 janvier 2021 Spanish Format: martes, 5 de enero de 2021 Chinese Format: 2021 Jan 5, Tue
Attention reader! Don’t stop learning now. Get hold of all the important Java Foundation and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course.