Home » JAVA Programming » Date & Time » Question
  1. Which of these formatting strings of SimpleDateFormat class is used to print AM or PM in time?
    1. d
    2. c
    3. b
    4. a
    5. None of these
Correct Option: D

By using format string “a” we can print AM/PM in time.



Your comments will be displayed only after manual approval.