0
Sub Main()
Dim e As Example = New Example()
' Set property.
If Date.TryParse("Null", e.Number) Then
'get the valid date
'10/12/2016'
Else
'get the value as nothing
'Nothing
End If
' Get property.
Console.WriteLine(e.Number)
Console.ReadKey()
End Sub
Class Example
Private _count As Date
Public Property Number() As Date
Get
Return _count
End Get
Set(ByVal value As Date)
_count = value
End Set
End Property
End Class
は、私が正しい日付を取得したいの内部e.number 注: - 私はe.numberNULL可能日時は
で値を取得する必要があります