c# - OrderBy list for only Date but not Time -
i have ilist<customclass>
my customclass: createddate(datetime), name(string), number(int)
i use orderby(p => p.createddate)
my question: how custom or find way order createddate date, not include time when order?
given createddate
of type datetime
can following.
orderby(p => p.createddate.date)
Comments
Post a Comment