title: VB 6.0 - Formating Textbox "dd/MM/yy"
body: <p>I've made a question previously about this but I didn't express really what I wanted. I have a textbox that requires the user to write a Date in it. Then he can press a button and generate a report based on the entries on some other textboxes. It is really important that the date in the generated report is in this format "dd/MM/yy".</p>
  
  <p>I use this code :</p>
  
  <pre><code>Dim a as String
  a = Format(Textbox1.text, "dd/MM/yy")
  </code></pre>
  
  <p>Everything is working fine except when the user types a date in this format "dd.MM.yy" e.g 15.05.15 . When this happens, the date in the generated report is always "30/12/99". Can some1 help me understand why this is happening ?</p>
  
  <p>EDIT: Regarding the Duplicate Question. In the previous question I asked how I can extract characters from a textbox and form a date in the format I want. This question is about a specific problem that happens when a specific type of format is used in the textbox (dd.MM.yy) that prints a specific date always (30/12/99).</p>