Building dynamic lambda predicate with short date
问题 I have the following code that helps me build a lambda expression via reflection. However when I try to compare versus a Date it converts my value to a full DateTime stamp. How can I get it to build my predicate so it will only compare the short date? System.Reflection.PropertyInfo propInfo = typeof(T).GetProperty(property); Type propertyType = propInfo.PropertyType; if (Utilities.IsNullableType(propertyType)) { propertyType = Nullable.GetUnderlyingType(propertyType); } ParameterExpression