nerdexam
Salesforce

PDII · Question #30

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

The correct answer is A. Date.format. See the full explanation below for the reasoning.

Question

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

Options

  • ADate.format
  • BString.format
  • CString.valueOf
  • DDate.parse

How the community answered

(47 responses)
  • A
    85% (40)
  • B
    2% (1)
  • C
    4% (2)
  • D
    9% (4)

Community Discussion

No community discussion yet for this question.

Full PDII Practice