Which of the following date formats can be sorted in a chronological order?

✅  The correct answer is:

Unix, yyyyMMdd and yyyy-MM-dd

Question:

Which of the following date formats can be sorted in a chronological order?

Solution:

  • MM/dd/yy
  • Unix
  • yyyyMd
  • yyyyMMdd
  • Unix and MM/dd/yyyy
  • yyyy-MM-dd
  • Unix, yyyyMMdd and yyyy-MM-dd