crisischeckin icon indicating copy to clipboard operation
crisischeckin copied to clipboard

Filtering requests by date

Open quietjoy opened this issue 8 years ago • 1 comments

Administrators can filter Requests on the Requests page by several fields, including the date the Requests was created. The CreatedDate property on the Requests model is currently saved as date and time. Administrators are only given the option of filtering based on a date. The Filter method in RequestService needs to only filter by date and not date and time.

quietjoy avatar Jun 14 '16 15:06 quietjoy

I believe one way to compare dates only with DateTime objects in EF6 is with DbFunctions.TruncateTime().

quietjoy avatar Jun 14 '16 20:06 quietjoy