Monday, July 22, 2013

Date format for SPServices for MOSS 2007 to update date field

Today I was working for a client needed to update a MOSS 2007 / WSS 3.0 list from client side.
I used SPServices from codeplex and was sure that UTC date will be accepted but I failed. I just format it in ISO Date format style YYYY-MM-DDzHH:MM:SS and it worked fine
I copied and quickly build the new code to suit me. Thanks to followings:
1. http://stackoverflow.com/questions/2573521/how-do-i-output-an-iso-8601-formatted-string-in-javascript
2. http://stackoverflow.com/questions/2587345/javascript-date-parse

No comments: