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?

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



Leave a Reply 6

Your email address will not be published. Required fields are marked *


R

R

The answer is D. DateTime Offset. The application must support different time zones. DateTimeOffset data type is what you need.

Bruno

Bruno

Agree

eucledio

eucledio

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

DB7

DB7

D: DateTimeOffset? – Allows nulls “?”, and different time zones