get date without slashes
<p>I need to create a file that has today's date in the file name. This is the code I'm using:</p>

<pre><code>FileName = ConfigurationManager.AppSettings["OutputFileLocation"] + "\\" + DateTime.Now.Date.ToShortDateString() + ConfigurationManager.AppSettings["OutputFileName"];
</code></pre>

<p>But since the date is returned with slashes (2011/11/10), it ends up looking for directories with those names. How can I get the date just as 20111110 ?</p>
