Home » JAVA Programming » Date & Time » Question
  1. Which of these method returns an instance of DateFormat that can format time information?
    1. getTimeDateinstance()
    2. getTime()
    3. getDateFormatinstance()
    4. getTimeInstance()
    5. None of these
Correct Option: D

getTimeInstance() method returns an instance of DateFormat that can format time information.



Your comments will be displayed only after manual approval.