title: How To Insert Any Format of dateTime into sql database using asp.net
body: <p>Here I am Giving The Queries What I am using:</p>
  
  <p>1.<code>INSERT into sample values(convert(varchar,'19-11-2014 10:10:41',103))</code></p>
  
  <p>2.<code>INSERT into sample values (convert(varchar,'2014-11-19 10:10:41',103))</code></p>
  
  <p>3.<code>INSERT into sample values(convert(varchar,'11-19-2014 10:10:41',103))</code></p>
  
  <p>The database Format is:<code>yyyy/mm/dd HH:mm:ss:mmm</code></p>
  
  <p>In Above Queries First one Throwing Error and Remaining Two Queries Working Fine.so How to insert Any Datetime Format into Sql No change in Query.</p>
  
  <p>Please Reply As Early As Possible,Thank You.</p>