title: Convert text to datetime?
body: <p>I want to convert text to datetime but having error.My text box value is in format dd/MM/yyyy
  <strong>String was not recognized as a valid DateTime.</strong></p>
  
  <pre><code>myFtMaster.GENTRTYDATEFROM =Convert.ToDateTime(txtTreatyPeriodfrom.Text.ToString());
  </code></pre>
  
  <p>My business object 'gentrtydatefrom' datatype is DateTime. Also what is the best way to avoid these type of errors without using a Try catch block.</p>