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 . String format
C . String.valueOf
D . Date.parse

Answer: C

Latest PDII Dumps Valid Version with 280 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
1 Comment
Inline Feedbacks
View all comments
JJ
JJ
4 years ago

Date.format is correct

String.valueOf returns standard format yyyy-MM-dd