title: Date format issue in vb.net
body: <p>I am trying to parse a date from a textbox and store it in a date variable</p>
  
  <pre><code>Dim enddt_2 As Date = Date.ParseExact(txtenddt.Text, "dd/MM/yyyy", System.Globalization.DateTimeFormatInfo.InvariantInfo)  'txtenddt.Text
  expenddt_1 = enddt_2.AddDays(-1)
  enddt = enddt_2.ToString("dd/MM/yyyy")
  </code></pre>
  
  <p><code>enddt</code> is a Date variable and when i convert <code>enddt_2</code> to a string i get the error as </p>
  
  <pre><code>Conversion from string "17/01/2012" to type 'Date' is not valid.
  </code></pre>
  
  <p>Let me clarify, if a value in textbox is <strong>17/01/2012</strong> than after parsing the value is changed to <strong>01/17/2012</strong> (<em>my systems Region and Language are dd/MM/yyyy</em>) in <code>enddt_2</code> and when i try to convert to <strong>dd/MM/yyyy</strong> format and store into a date variable i get the above error. This error comes only for the dates after 12. i.e a date variable accepts a date in MM/dd/yyyy format.The dates before 12 work fine, i.e for all dates from 1 to 12 there is no error.</p>
  
  <p>How can i make <code>enddt</code> store the date in dd/MM/yyyy format. </p>