[Solved]Now Date/Now Day
Right now in VB I'm using a "DateInterval.Month" procedure and a "DateInterval.Day" procedure. Right now this is saying that it is February 4th. Is there a way to change that? I need the current date.
now
Dim Info As CultureInfo = Thread.CurrentThread.CurrentCulture
Dim Curmonth As String = Info.DateTimeFormat.GetMonthName(DateTime.Now.Month)
Dim Curday As String = Info.DateTimeFormat.GetDayName(DateTime.Now.Day)
Dim strMonth As String
Dim strDay As String
Dim strName As String
strName = txtName.Text
strMonth = txtMonth.Text
strDay = txtDay.Text
If Curmonth = strMonth And Curday = strDay Then
'Current date equals entered date
MessageBox.Show("'Message here'")
Else
'Current date does not equal entered date
MessageBox.Show("'Message here'")
End If
End Sub
