title: Generating random id using current date
body: <p>I'm doing a bank oriented project. I have to generate Account Number using current date.</p>
  
  <p>Example: </p>
  
  <p><code>account no-20150409001</code>. 
  <code>'2015'-Year</code>, 
  <code>'04'-Month</code>, 
  <code>'09'-Date</code>, 
  <code>'001'</code>-represents the number of the new member opening the account on that particular date</p>
  
  <p>This number should change in every branch to avoid same account number.</p>
  
  <p>How to do so?</p>
  
  <p>and this is my code</p>
  
  <p><a href="http://jsfiddle.net/Jegannath/z9na41o5/#&amp;togetherjs=ynHxlyDeO1" rel="nofollow">http://jsfiddle.net/Jegannath/z9na41o5/#&amp;togetherjs=ynHxlyDeO1</a></p>