Solved

If You Would Like to Sort an Array of Date

Question 18

Multiple Choice

If you would like to sort an array of date values, you should do which of the following?


A) Store the dates as strings because strings can be sorted more effectively than Date objects.
B) Store the dates as Date objects because Date objects can be sorted more effectively than strings.
C) Write an algorithm that parses date strings into their month, day, and year parts.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions