Parse DateTime From FileName
<p>Hi I'm trying to develop a utility to manage large sets of backup's: </p>

<p>I have my backups structured like:</p>

<pre><code>D:\SQLBACKUP\NOFAULT2010\Datatbase\LOG\NOFAULT2010_Datatbase_LOG_20110906_182000.trn
D:\SQLBACKUP\NOFAULT2010\Datatbase\LOG\NOFAULT2010_Database_LOG_20110906_183000.trn
</code></pre>

<p>I can get rid of the static parts easily enough </p>

<pre><code>Replace(@"D:\SQLBACKUP\NOFAULT2010\Datatbase\LOG\NOFAULT2010_Datatbase_LOG_", "").Replace(".trn", "");
</code></pre>

<p>How can I consistently parse this part 20110906_182000 ... I'm open to any other suggestions.  Thanks My brain is on vacation today something terrible.  </p>
