Datetime parameter unusable in simple automation runbook
Buch, Tamara
16
Reputation points
I have the most simple runbook imaginable. It takes the parameter [Datetime]$DateNotified and it does a write-output of $DateNotified. Instead of printing the date I get this error: Cannot process argument transformation on parameter 'DateNotified'. Cannot convert value "/Date(1678838400000)/" to type "System.DateTime". Error: "String '/Date(1678838400000)/' was not recognized as a valid DateTime."
Any ideas why? I just want users to be able to select a date when running a runbook, but anything I do with a [datetime] param throws an error. See screenshots.
Sign in to answer