title: I have a do until loop, that uses a boolean and an input box. Trying to get a str variable from the input loop
body: <p>In Visual Basics I  have a do until loop to to make sure the date is entered in a correct way. How can I take the user input in the in put box and save it as a date variable?</p>
  
  <pre><code>Private Sub cmdbtn3_Click()
  
  'create a booleanvariable
  Dim blDone As Boolean
  
  'ask for there name
  strName = InputBox("Please Enter Your Name", "Step 1")
  
  'create a do while not because we want a repeat until blDone is True
  Do While Not blDone
  
      'set the value of the input box with the product list equal to the boolean
      'ask for the date of the start, have a do loop until date1
      blDone = InputBox("Please Enter the Estimated Starting Date of CU" &amp; vbNewLine &amp; "Example 05/24/2014") Like "##/##/####"
  
  
      'Create a msg that explains what the input must be
      If Not blDone Then MsgBox "the input didn't match the pattern '01/23/2014' where:" _
                                &amp; vbNewLine &amp; vbTab &amp; "'01' must bethe month" _
                                &amp; vbNewLine &amp; vbTab &amp; "'23' must be the date" _
                                &amp; vbNewLine &amp; vbTab &amp; "'2014' must be the year"
  
  'I need to save the value of the date as
  
  Loop
  
  End Sub
  </code></pre>