title: How to convert File CreationTime into String in Powershell
body: <p>All I found online were ways to write the <em>current</em> date into a string using <code>get-date.toString()</code></p>
  
  <p>What I want to do is read the <code>CreationDate</code> and Time from a File and convert that into a String for a directory name.</p>
  
  <p>It would suffice if i could save the different parts of <code>CreationTime</code> into separate Variables.</p>
  
  <p>E.g.: <code>$Year</code>, <code>$Month</code>, <code>$Day</code>, <code>$Hour</code> etc.</p>
  
  <p>How would I go about doing that? </p>