title: reverse date javascript from yyyy/mm/dd to dd/mm/yyyy
body: <p>I making an asp project and the date is displayed as yyyy/mm/dd but when the user press on the edit button for the form i need to replace the date format with dd/mm/yyyy</p>
  
  <p>this the asp code remember i need the user to show the date as yyyy/mm/dd in the table but when he pressing on a button i need the date to be reversed to dd/mm/yyyy</p>
  
  <pre><code> &lt;td class="hidden-phone"&gt;@EnnotaBAL.ArabicEncoding.GetArabicNumbers(transaction.PostDate.ToString("yyyy/MM/dd"))&lt;/td&gt;
  </code></pre>
  
  <p>and this the javascript code for the date element:</p>
  
  <pre><code>// Transaction Date
  var TransDate = oCells.item(4).innerHTML;
  document.getElementById('Date').value = convertDigitIn(TransDate);
  </code></pre>