Skip to content

Commit

Permalink
Add nullable datetime types.
Browse files Browse the repository at this point in the history
  • Loading branch information
maliming committed Aug 24, 2020
1 parent b8828ca commit e11d4ce
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ public static class ObjectExtensionPropertyInfoAspNetCoreMvcExtensions
private static readonly Type[] DateTimeTypes =
{
typeof(DateTime),
typeof(DateTimeOffset)
typeof(DateTime?),
typeof(DateTimeOffset),
typeof(DateTimeOffset?)
};

public static bool IsDate(this IBasicObjectExtensionPropertyInfo property)
Expand Down

0 comments on commit e11d4ce

Please sign in to comment.