private DateTime CorrectDateTime(DateTime dateTime) { return dateTime.Subtract(dateTime.ToUniversalTime().Subtract(dateTime)); }
FeatureDataForm fdf = (FeatureDataForm)sender;fdf.GraphicSource.Attributes["EDITOR"] = username;fdf.GraphicSource.Attributes["EDITED_DATE"] = DateTime.Now;fdf.ApplyChanges();Using Fiddler, I saw that this was sent in the updates for the EDITED_DATE field "1307997114182" and what was saved in the database was "6/13/3011 8:31:54 PM". The time should be 3:51 PM.
FeatureDataForm fdf = (FeatureDataForm)sender; fdf.GraphicSource.Attributes["EDITOR"] = username; fdf.GraphicSource.Attributes["EDITED_DATE"] = DateTime.Now; fdf.ApplyChanges();
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.