← 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?
- A.Month as two digits
- B.Milliseconds
- C.Minutes
- 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 →