Advertisement
2002ASP Files/ File Controls/ Input/ Output #6056

Validate Date

Checks and makes sure that the user enters in a valid date. Make a text box on a form and call it txtDate

AI

Yapay Zeka Özeti: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Kaynak Kod
original-source
sub validDate()
 If txtDate.Text <> "" Then
  If IsDate(txtDate) = False Then
    MsgBox "You have entered an Invalid Date in Last Contacted please use MM/DD/YYYY", , "Invalid Entry"
    txtDate.text= ""
  Else
    txtDate.Text = Format(txtDate.Text, "General Date")
  End If
Else
  txtDate.Text = Date
End If
end sub
Orijinal Yorumlar (3)
Wayback Machine'den kurtarıldı