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

May 15, 2015 at 4:08 PM
Edited May 15, 2015 at 4: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" .

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

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