title: c# show underscore _ in date instead of dash -
body: <p>I am saving a file name with a string value plus the date as follows:</p>
  
  <pre><code>var fileName = String.Format("{0}_{1}.zip", "fileName", DateTime.Now.ToString("yyyy-MM-dd"));
  </code></pre>
  
  <p>The above line gives me:</p>
  
  <pre><code>fileName_2015-11-24.zip
  </code></pre>
  
  <p>Is it some how possible that I can get <code>fileName_2015_11_24.zip</code> </p>
  
  <p>I have actually tried with <code>DateTime.Now.ToString("yyyy_MM_dd")</code> But I forgot to mention in my question. </p>
  
  <p>One possibility is to replace dashed <code>-</code> with underscores <code>_</code> but is there any other solution ?</p>
  
  <p>Thanks. </p>