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!