Professional Documents
Culture Documents
Check Date Function
Check Date Function
Try
If dtpFromDate.Value > dtpToDate.Value Then
MsgBox("From Date cannot be greater than To Date. Please change
From Date", MsgBoxStyle.Information, "Wholesaler Processing")
dtpFromDate.Focus()
Return False
Else
Return True
End If
Catch errException As Exception
Throw errException
End Try
End Function