title: How to write date and time to a file name?
body: <p>My AutoIt script doesn't work. It should rename files by actual date and time.</p>
  
  <pre><code>#include &lt;Date.au3&gt; 
  #include &lt;File.au3&gt;
  FileMove("C:\file.csv", "C:\file" &amp; _NowDate() &amp; _NowTime() &amp; ".csv")
  </code></pre>
  
  <p>There is no syntax error, but the file isn't renamed. I think Windows rejects symbols like <code>:</code> or <code>/</code>. How to convert time to this format: <code>hh-mm-ss_dd-mm-yyyy</code>?</p>