I have this value 2016-01-15 19:31:24
That value is $array
I convert it by
$time = [DateTime]::Parse($array)
with the result
Friday, January 15, 2016 7:31:24 PM
When I assign Time in a html $body string. I get the initial value. ( 2016-01-15 19:31:24)
Is there something I am not doing?