title: (ASP.NET) How do I remove special characters when doing a DateTime.Now.ToString()
body: <p>So I have a flashobject which I need to pass a formatted DateTime string to.</p>
  
  <p>My code:</p>
  
  <pre><code>string date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
  </code></pre>
  
  <p>which outputs as: 2009-09-16 22:26:45</p>
  
  <p>However when it is actually output to HTML and swfobject it renders it as:</p>
  
  <pre><code>so.addVariable("inNowDate","2009-09-16+22%3a25%3a13");
  </code></pre>
  
  <p>I think this is messing up a calculation that the flash object does based off the current time.  Do I need to encode or decode this?  </p>
  
  <p>Any help would be greatly appreciated!  Thanks!</p>