Which method should be used to convert a Date to a String in the current user’s locale?

Which method should be used to convert a Date to a String in the current user’s locale?
A . Date.format
B . Date.parse
C . String.format
D . String. valueOf

Answer: D

Latest PDII Practice Questions with 280 Q&As

Updated Study Material | Instant Download | Detailed Answers and Explanations

Subscribe
Notify of
guest
1 Comment
john johnson
john johnson
6 months ago

answer is A because D does not consider users locale