How do I compare time only of DateTime Object without getting the following
Error:
An exception of type \'System.NotSupportedException\' occurred in
This is the answer!
var date = DateTime.Parse(query.DueTime); var time = date.TimeOfDay; entities = entities.Where(r => DbFunctions.CreateTime(r.DueTime.Hour, r.DueTime.Minute, r.DueTime.Second) == time);