How to reorder date format in filename
<p>I've been looking all over stackoverflow and other forums online for any help with PowerShell variables and the rename function. I've had no luck.</p>

<p>The filename convention I use is: CompanyName 12.31.15 FS
(The "FS" describes the content of the file, in this case financial statements). Single digit months are preceded by 3 spaces so that the "FS" always ends up in the same column visually in windows explorer.)</p>

<p>The date format is m.dd.yy though I would like to change it to yy.mm.dd. The problem is I have over 30 folders with myriad of files in them- Some don't follow this file naming convention but if they use the m.dd.yy format, then the filename certainly does follow the convention.</p>

<p>So here's what I'm looking for:</p>

<ul>
<li><p>A way to switch around only the date part of the file name from m.dd.yy to yy.mm.dd</p></li>
<li><p>In so doing, to also remove 2 of the leading spaces (where there are currently 3) and only have one space between CompanyName, date, and content.</p></li>
<li><p>The files must be changed in several directories within the "companies" folder</p></li>
</ul>

<hr>

<p>Examples:</p>

<p>Currently:</p>

<pre><code>CocaCola 12.31.15 FS

CocaCola  6.30.15 FS
</code></pre>

<p>I want:</p>

<pre><code>CocaCola 15.12.31 FS

CocaCola 15.06.31 FS
</code></pre>