Microsoft Exam Questions

Which of the following is the DateTime method that is being included?

You work as a developer at ABC.com. The ABC.com network consists of a single domain named
ABC.com.
You have been tasked with creating an application allows users to enter time and dates. You are
writing code that includes a DateTime method, which converts the indicated string representation
of a date and time to its DateTime equivalent and returns a value that specifies whether the
conversion was successful.
Which of the following is the DateTime method that is being included?

A.
TryParse(String, DateTime)

B.
TryParse(String, IFormatProvider, DateTimeStyles, DateTime)

C.
TryParseExact(String, String, IFormatProvider, DateTimeStyles, DateTime)

D.
TryParseExact(String, String[], IFormatProvider, DateTimeStyles, DateTime)

Explanation: