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.
Option A
B.
Option B
C.
Option C
D.
Option D
How would I store this in an sByte? Makes no sense. But a DateTime structure (B) would be perfect.
http://msdn.microsoft.com/en-us/library/system.datetime%28v=vs.110%29.aspx
The answer is D. DateTime Offset. The application must support different time zones. DateTimeOffset data type is what you need.
Agree
Also: Students may indicate no preferred time by leaving the date and time field empty… so the ? simbol means that can be null.
Answer: D
DateTimeOffset Represents a point in time, typically expressed as a date and time of day, relative to Coordinated Universal Time (UTC).
From : https://msdn.microsoft.com/en-us/library/system.datetimeoffset(v=vs.110).aspx
D: DateTimeOffset? – Allows nulls “?”, and different time zones