Home » Microsoft » 98-361 » Which data type should you use to record the student’s preferred date and time?
You are building a web application that enables international exchange students to schedule phone calls with their prospective schools.
The application allows students to indicate a preferred date and time for phone calls. Students may indicate no preferred time by leaving the date and time field empty. The application must support multiple time zones.
Which data type should you use to record the student’s preferred date and time?
A. uLong?
B. DateTime
C. SByte
D. DateTimeOffset?
Correct Answer: D
Explanation/Reference:
datetimeoffset: Defines a date that is combined with a time of a day that has time zone awareness and is based on a 24-hour clock.
Incorrect:
DateTime: Defines a date that is combined with a time of day with fractional seconds that is based on a 24-hour clock.
sByte: The sbyte keyword indicates an integral type that stores values in the range of -128 to 127.