title: How do I improve the performance of code using DateTime.ToString?
body: <p>In my binary to text decoding application (.NET 2.0) I found that the line:</p>
  
  <pre><code>logEntryTime.ToString("dd.MM.yy HH:mm:ss:fff")
  </code></pre>
  
  <p>takes 33% of total processing time. Does anyone have any ideas on how to make it faster?</p>
  
  <p>EDIT: This app is used to process some binary logs and it currently takes 15 hours to run. So 1/3 of this will be 5 hours. </p>
  
  <p>EDIT: I am using <a href="http://code.google.com/p/nprof/">NProf</a> for profiling. App is processing around 17 GBytes of binary logs.</p>