Showing posts with label DateTime to Null. Show all posts
Showing posts with label DateTime to Null. Show all posts

Thursday, November 27, 2014

How to set SharePoint 2013 user defined date time filed to empty using JSOM

This is a very small post, where I need to set, user defined list column of type date time to null

I looked into the internet and I haven't found anything related to this. To set date time field to empty, just set "null" to that column

For ex:

listitem.set_item('UserModifiedBy', null)

In the above code snippet, UserModifiedBy is of type "Date and Time" which is not a required field and allow nulls