Powershell Foreach Array Php Format Datetime