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