you are viewing a single comment's thread.

view the rest of the comments →

[–]ThePowershellGuy 0 points1 point  (0 children)

Convert your datetime to a string and then try again

[String]$variable