title: Get the date modified to be formatted with AM/PM with powershell
body: <p>I've currently got</p>
  <pre><code>Get-Item &quot;C:\path\to\file.txt&quot; | ForEach-Object { $_.LastWriteTime }
  </code></pre>
  <p>Which outputs like this</p>
  <pre><code>12/18/2018 16:54:32
  </code></pre>
  <p>But I want it to output like this</p>
  <pre><code>12/18/2018 4:54 PM
  </code></pre>
  <p>Is there any way I can do that?</p>