title: Date formatting in Lua
body: <p>I am retrieving a date from a database in the following format:</p>
  
  <pre><code>vardate =  '01/20/2017 09:20:35' - mm/dd/yyyy hh:mm:ss
  </code></pre>
  
  <p>I want to convert it to the format dd-mm-yyyy hh:mm:ss </p>
  
  <p>Can I get some guidance on how I could get the format I want?</p>