Sql time scheduling problem: the reverse order of year, month and day, the positive order of time, minutes and seconds, and how to realize sql and EF.

clipboard.png

could you tell me how to query the sql statement and how to implement it on ef? thank you

Jun.01,2021

CONVERT (varchar (100), GETDATE (), 23)
CONVERT (varchar (100), GETDATE (), 24) the acquisition time
is divided into two columns, and then sorted in descending and ascending order of date

.
Menu