Order by descending date - month, day and year

前端 未结 6 596
Happy的楠姐
Happy的楠姐 2020-12-05 03:45

This seems stupid but, I simply need a list of dates to be ordered with the most recent date at top. Using order by DESC doesn\'t seem to be working the way I w

6条回答
  •  时光说笑
    2020-12-05 04:43

    try ORDER BY MONTH(Date),DAY(DATE)

    Try this:

    ORDER BY YEAR(Date) DESC, MONTH(Date) DESC, DAY(DATE) DESC

    Worked perfectly on a JET DB.

提交回复
热议问题