🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Date and Time in Java: all 10 questions

Quiz: Date and Time in Java · Question 6 of 10

What does the pattern letter mm mean in DateTimeFormatter?

What does the pattern letter mm mean in DateTimeFormatter?

  1. A.Month as two digits
  2. B.Milliseconds
  3. C.Minutes
  4. D.Month name
Answer & explanation

Correct answer: Minutes

MM (capital) is the month; mm (small) is minutes. Mixing them up is a very common bug.

Can you get the rest right without peeking?

Take the timed Quiz: Date and Time in Java quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →