I have the following code for part of an application I'm building and I need some instruction on how to store this value and carry it to the next part of the program.
Private Sub dateEntryTextbox_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles dateEntryTextbox.TextChanged
Dim dateEntryTextBox As Date
Try
FormatDateTime(DateString, DateFormat.GeneralDate)
MsgBox("Valid Date")
Catch ex As Exception
MsgBox("Invalid Date")
End Try
End Sub
the dateEntryTextbox will be a date entered that I want to store as a date and use it to fire a sql query in another button on my app. Any assistance would be appreciated.
Thanks
Doug