... "DATETIME": new Date().valueOf(); ...
I need to write a specific date + time, not the current date
var attr = { "DATE_TIME_J" : datetime.valueOf() };
I'm trying to create a new feature using featureLayer.applyEdits.I pass in the geometry and attributes and this is saved to the database correctly.When I try and save a datetime attribute I get the error : "Error saving new find : Unable to complete operation".Does anyone know what format the datetime needs to be in?I am using ArcGIS Server v10 with SQL Server 2008.Thanks. See my code below:var datetime = dojo.date.locale.parse("07/02/2014 13:54", { datePattern:"dd/MM/yyyy", timePattern:"HH:mm" });var attr = { "DATE_TIME_J" : datetime };var ng = new esri.Graphic(Point, null, attr, null);featureLayer.applyEdits([ng], null, null, ........
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.