string was not recognized as a valid datetime. in c#
===

i am using this code for passing datetime.

    Convert.ToDateTime(textBox1.Text)
but the compiler show an error that string was not recognized as a valid datetime. so how to avoid this error and is a datetime field in my database.