converting from string to date - TechRepublic
Question
December 20, 2008 at 02:50 PM
sarasami

converting from string to date

by sarasami . Updated 17 years, 6 months ago

Hi,
I’m running an ASP.net program with VB.NET, At one point I try to convert
a date string into a date object… this string is from a TextBox, when I use:
Dim CheckinDate As DateTime = DateTime.Parse(TextBox1.Text)

it comes an error that says:
Conversion failed when converting date and/or time from character string.

by the way I’m using the format of “dd/mm/yyyy”

Plz can any one help me with this
Thanks in advance

This discussion is locked

All Comments