How do I add to a date? I thought the following code would work but it
doesn't like it. I'm trying to add 6 months (182 days) onto a date.
Option Explicit
Private Sub Form_Load()
Dim Answer As Integer
Dim GivenDate As Date
GivenDate = "2/1/2004"
Answer = GivenDate + 182
Label1.Caption = Answer
End Sub
doesn't like it. I'm trying to add 6 months (182 days) onto a date.
Option Explicit
Private Sub Form_Load()
Dim Answer As Integer
Dim GivenDate As Date
GivenDate = "2/1/2004"
Answer = GivenDate + 182
Label1.Caption = Answer
End Sub
Comment