title: ASP formatting date
body: <p>Hello there I'm trying to get a date in ASP to show up in a particular format (yyyymmdd). This is what I've tried so far but no luck. Any help is appreciated. Thanks</p>
  
  <pre><code>&lt;tr&gt;
      &lt;td&gt;&lt;b&gt;Call Date&lt;/b&gt;&lt;/td&gt;
      &lt;% for i = -6 to 0 %&gt;
          &lt;td align=center&gt;
              &lt;a href="20a.asp?cldate=&lt;% response.write(DateTime.Date()+i.ToString("yyyyMMdd")) %&gt;" target="_blank"&gt;X&lt;/a&gt;
          &lt;/td&gt;
      &lt;% Next %&gt;
  &lt;/tr&gt;
  </code></pre>