How to remove date via REST api on featureupdates?

3134
2
01-07-2016 07:05 AM
JasonPosthuma
New Contributor

I'm using arcgis rest api 10.3.1. My service has an editable, nullable esriFieldTypeDate field named CaptureDate.

How can I remove this date? Passing null sets it to SQL Server epoch of 1/1/1900, passing -1 sets it 12/31/1969, and passing undefined, "NULL", or an empty string is rejected as bad input.

0 Kudos
2 Replies
ChrisSmith7
Frequent Contributor

Seems like there was a bug (NIM070071) way back in 2.3 - Default date of 1970 for date field at 2.3 that did not honor null values. It doesn't seem to be related, though. Do you have a default value for [date] set on the service, by chance?

0 Kudos
JasonPosthuma
New Contributor

No default date. If there would be a default set, then I believe all date

fields would be defaulted to 1/1/1900.

Jason Posthuma

Developer

303-210-4525

0 Kudos