title: Changing the default date format in classic asp when using the "date" function
body: <p>I'm migrating a whole bunch of web pages that were written in classic asp over to a new server, and have discovered many references to the simple <em>date()</em> function, like:</p>
  
  <pre><code>    if cint(left(date,instr(date,"/")-1)) &lt; 9 then blah blah
  </code></pre>
  
  <p>I'm getting errors because the new server's default date format is returning <em>yyyy-mm-dd</em>, and the code above is expecting it to be in <em>dd/mm/yyyy</em> format.</p>
  
  <p>Rather than manually fixing every occurrence, of which there could be hundreds, I'm looking to see if I can change the default date format for asp so that <em>date()</em> returns <em>dd/mm/yyyy</em>. I thought by simply changing the system's short date format would do the trick, but even after restarting the server it's still showing <em>yyyy-mm-dd</em>.</p>
  
  <p>Is there a setting somewhere where you can specify the <em>default</em> date format when using the <em>date()</em> function?</p>