Java Program Format Time in MMMM Format
In Java, The MMM format for months is a short form of the month using 3 characters. SimpleDateFormat class is used for implementing this format in java and you can import this package by using the following code.
Months Name(MMMM Format) MMM Format January Jan February Feb March Mar April Apr May May June Jun July Jul August Aug September Sep October Oct November Nov December Dec
The MMMM format for months is the full name of the Month. For example -January, February, March, April, May, etc are the MMMM Format for the Month.
Here, you will see the complete package that how you can use SimpleDateFormat class which extends DateFormat class. SimpleDateFormat class is also helpful to convert date to text format and also it’s parsing from text to date format and in normalization.
Class SimpleDateFormat java.lang.Object java.text.Format java.text.DateFormat java.text.SimpleDateFormat
Example 1: Display Month in MMM and MMMM Format
Example 2: Display Date and Time in MMMM Format
Monday 02 November 2020 11:46:05
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.