You are developing an application that accepts the input of dates from the user.
Users enter the date in their local format. The date entered by the user is stored in a string variable named
inputDate. The valid date value must be placed in aDateTime variable named validatedDate
You need to validate the entered date and convert it to Coordinated Universal Time (UTC). The code must
not cause an exception to be thrown.
Which code segment should you use?
A.
Option A
B.
Option B
C.
Option C
D.
Option D
Would say A?
A
A