Larry Hojer

Larry Hojer

  • NA
  • 15
  • 0

Converting TextBox.Text to DateTime for instert into SQL Table

Jun 19 2007 10:42 AM
Hi,

I've got a converting problem. I'am trying to convert a text value in a TextBox to DateTime format without the last time information like 2007-06-26 00:00:00. I just like to insert 2007-06-26 (Swedish time format).

I've tryed: string str = Convert.ToDateTime(tbStart.Text).ToShortDateString;
But got an error.

Thanks in advance,

Answers (5)