Pull Multiple Timestamps and Usernames from a text file
<p>I have a basic text file full of multiple emails. I need to take the time stamp (MM/DD/YYYY HH:MM:SS) and the teamname that follows (it will always be in the same place for every block) and put them both into a new file with the time stamp being changed to YYYY-MM-DD. I know the basic ins-and-outs for removing strings, but I have no idea how to get multiple dates and teamnames out of the file because I don't know what exactly they are (hence the reason I'm looking for them).</p>

<p>Here's what the emails will look like:</p>

<pre><code>To: address@address.com 
From: address@address.com 
Date: MM/DD/YYYY HH:MM:SS 
Subject: Welcome to the IQA!

Hi, and welcome to the IQA, TEAMNAME, blah blah blah

To: address@address.com 
From: address@address.com 
Date: MM/DD/YYYY HH:MM:SS 
Subject: Welcome to the IQA!

Hi, and welcome to the IQA, TEAMNAME, blah blah blah
</code></pre>

<p>And this will be repeated over ~100 emails. If there would be an easier language to write this in, please let me know!</p>
