VB の日付オブジェクトから 18 年を減算したいと考えています。
コード例は次のとおりです。
Dim someVar
DirectCast(pcontrol, DateTimePicker).Value = Date.Now.Subtract(someVar)
someVar 値は ?
VB の日付オブジェクトから 18 年を減算したいと考えています。
コード例は次のとおりです。
Dim someVar
DirectCast(pcontrol, DateTimePicker).Value = Date.Now.Subtract(someVar)
someVar 値は ?