Hey PowerShell noobie here.
Please can somebody point me in the right direction on how to add a space ' ' after then 10th character in the string below:
$var = '01/03/202012:00:00'
The finished result should look like this:
$var = '01/03/2020 12:00:00'
Thanks a heap!
Try this...
$var = '01/03/202012:00:00'.insert(10, ' ')
And, for future reference, you can see the list of string functions with something like... (gm
is the built-in alias for the Get-Member
cmdlet)