How do you handle dates while updating or adding a new list item?

Coordinator
May 15, 2015 at 5:08 PM
Edited May 15, 2015 at 5:09 PM
SharePoint expects the dates in an ISO format. I like doing something like below :
Create a Datetime object whichever way you want and then append a "Z" .


$d=get-date
$datestring=$d.tostring("s") + "Z"

I have added this to the FAQ section the documentation page.