Thanks for Stephany's reply.
Tim,
I'd like to give more information on this. CDate() sometimes doesn't work
in different cultures. To specify the culture in parsing a date you can try
the following codes:
Dim dt As DateTime
Dim culture As IFormatProvider = New
System.Globalization.CultureInfo("en-GB")
dt = DateTime.Parse(Me.TextBox1.Text, culture)
dt will contain the DateTime value and you can assign it to a DateTime
parameter in a SQL statement.
If anything is unclear, please feel free to reply to the post.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
|