Date and Time Properties in EF 6 and EF Core Jun 11, 2021 The example below illustrates how to implement Date and Time Properties in an EF 6 or EF Core class. C# VB.NET public DateTime DateTimeProperty { get; set; } public DateTime? DateTimeNullableProperty { get; set; } public TimeSpan TimeSpanProperty { get; set; } Public Property DateTimeProperty() As Date Public Property DateTimeNullableProperty() As Date? Public Property TimeSpanProperty() As TimeSpan