Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Is it possible to clear the value on a SPFieldDateTime?

$
0
0

Hello everyone,

This may be straightforward but I can't seem to clear the value of a SPFieldDate programmatically. The field is not required, the standard value is set to empty and other items in the list have an empty value. I have tried setting the value to "" and null, but nothing worked. It seems like SharePoint is trying to parse whatever value I assign as a DateTime before setting the value. Also there is no FieldValue class for dates like the "TaxonomyFieldValue" for taxonomy fields so how do you clear the field value once it has been set?



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>