How do I set a nullable DateTime to null in VB.NET?

后端 未结 5 1194
有刺的猬
有刺的猬 2020-12-10 11:58

I am trying to set up a date range filter on my UI, with checkboxes to say whether a DateTimePicker\'s value should be used, e.g.

Dim fromDate As DateTime? =         


        
5条回答
  •  萌比男神i
    2020-12-10 12:30

    With VB.NET and EF 6.X to save null is:

    Dim nullableData As New Nullable(Of Date)

提交回复
热议问题