I decided, with the help of your information, to create my own editor UI and not use the Attribute Inspector. I have it all working except for a date field. I am using a DateField component and attempting to send the text property to the graphic. I am using the featureLayer.applyEdits([graphic], null, null... command. When I do this, I get an error message - Invalid graphic features\nInvalid parameters. So I investigated what the Attribute Inspector was sending when I changed the date. When I set the date as 2/3/2011, it actually sends 1,296,716,400,000. When I set the date as 2/2/2011, it actually sends 1,296,663,000,000. The difference is 86,400,000. Which is the number of thousandths of seconds in one day.
So, if I take 1,296,716,400,000 and divide it by 1,000, I get 1,296,716,400 which is the number of seconds from the start date. I then divide that by 60 and get 21,611,940 which is the number of minutes since the start date. I then divide that by 60 and get 360,199 which is the number of hours since the start date. If I divide that by 24 I get 15,008.2916 which is the number of days since the start date. If I divide that by 365 I get 41.1186 which is the number of years since the start date. Which is 1970ish. So, I entered 1/1/1970 in as my date and it sends
25,200,000 and I enter 12/31/1969 and it sends -61200000. So, it looks like sometime between 12/31/1969 and 1/1/1970 is 0.
So does anyone know what I am talking about here? Because I feel like I am lost in a sea of numbers. I am assuming there is a method on the DateField that will give me this value, or maybe I am just crazy and need to just use a to_date function or something. We are using a 9.3.1 Oracle 10g database with ArcGIS Server 10 sp1.