title: UNIX previous month and year with format YYYYMM
body: <p>I need to assign a variable with the value in the format <code>YYYYMM</code> e.g for today run the previous month values should be generated as </p>
  
  <pre><code>Var1 = 201607
  </code></pre>
  
  <p>Is there any in build method available? Could you share the steps to generate this?</p>