Dim cDS As String = DateTimeFormatInfo.CurrentInfo.DateSeparator Me.Mask = "##" & cDS & "aaa" & cDS & "##"For Dutch I use the following validation (at this stage, I only support dutch at this stage)
Public dateFormat As String = "dd/MMM/yy" Function checkDate(ByVal c As String) As Boolean Dim d As Date Return Date.TryParseExact(c, dateFormat, CultureInfo.CurrentCulture, DateTimeStyles.AssumeLocal, d) End Function>Thank for your reply me ,but i have some problem.........
>Dim dateEntered As DateTime > DateTime.TryParse(Maskedate.Text, dateEntered) > > If IsDate(Maskedate.Text) = False Then > MsgBox("Error available date !", 48, "Warning") > Maskedate.Focus() > check = False > Exit Sub > >