title: How to get previous month and year
body: <p>How to get previous month and year</p>
  
  <p>Code</p>
  
  <pre><code>Dim dtr As String
  text1.Text = "01/2011" 'User Input.... (mm/yyyy)
  dtr = text1.Text
  </code></pre>
  
  <p>If user selected 01/2011 then date should display previous month and year...</p>
  
  <p>Expected Output</p>
  
  <ul>
  <li>If user entered text1.text = "02/2011" then it should display "01/2011"</li>
  <li>If user entered text1.text = "01/2011" then it should display "12/2010"</li>
  </ul>
  
  <p>Can anyone help me to do this?</p>