AnsweredAssumed Answered

What format of the datetime value does the REST service (add/update) accept?

Question asked by stephenlam1988 on Aug 22, 2014
Latest reply on Aug 22, 2014 by riyasdeen_b

I am developing a post back function (.NET 4.5) to the add feature REST service, the database is using SQL server 2012, but I cannot add a feature while it has a datetime attributes (type of the datetime column is datetime2(7), this is generated by ArcCatalog).


.Net code:

String.Format("\"attributes\":{{\"fid\":\"0114081403\",\"start_time\": {0}}}", new JavaScriptSerializer().Serialize(record_date));


The Serialize will return the value like this:  "\/Date(1355496152000)\/"

I have tried something like FORMATDATETIME, but it still not works. Any help would be appreciated!