<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: using dijit.form.DateTextBox and dijit.form.TimeTextBox with geodatabase in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-dijit-form-datetextbox-and-dijit-form/m-p/706902#M65792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Andy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just tried to do this myself and had the same issue. Looks like the current date format as defined in the &lt;/SPAN&gt;&lt;A href="http://atlas.resources.ca.gov/ArcGIS/SDK/REST/index.html"&gt;ArcGIS REST API docs&lt;/A&gt;&lt;SPAN&gt; is based on millisecond epoch time. When I called applyEdits with the date in that format, it went through fine. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Form the REST API:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;GPDate&lt;BR /&gt;The value for GPDate data type is a number that represents the number of milliseconds since epoch (January 1, 1970) in UTC.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 May 2012 02:50:27 GMT</pubDate>
    <dc:creator>AndrewLeane</dc:creator>
    <dc:date>2012-05-29T02:50:27Z</dc:date>
    <item>
      <title>using dijit.form.DateTextBox and dijit.form.TimeTextBox with geodatabase</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-dijit-form-datetextbox-and-dijit-form/m-p/706901#M65791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Im working on a javascript web page to allow spatial data to be directly entered to a geodatabase.&amp;nbsp; Does anybody have some sample code for formmating dates and times for entry into the geodatabase from dijit.form.DateTextBox and dijit.form.TimeTextBox?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Im able to successfully get the values from the controls using&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var od = dojo.byId("dateval").value;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var ot = dojo.byId("timeval").value;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;which result in &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;od = "5/8/2012"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ot = "11:30 AM"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;which I thought would be easy to assign to attributes of a graphic and submit but I am having trouble and my code is failing when I submit those attributes to featureLayer.applyEdits.&amp;nbsp; Do I need some special formatting before assigning these values to a esri.Graphic so that they can go into a geodatabase date field properly (im on SDE 10 and SQL server 2008).&amp;nbsp; Sure I could store these values in text fields but that kind of defeats the point of geodatabase dates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 17:13:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-dijit-form-datetextbox-and-dijit-form/m-p/706901#M65791</guid>
      <dc:creator>AndrewDuff</dc:creator>
      <dc:date>2012-05-23T17:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: using dijit.form.DateTextBox and dijit.form.TimeTextBox with geodatabase</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-dijit-form-datetextbox-and-dijit-form/m-p/706902#M65792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Andy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just tried to do this myself and had the same issue. Looks like the current date format as defined in the &lt;/SPAN&gt;&lt;A href="http://atlas.resources.ca.gov/ArcGIS/SDK/REST/index.html"&gt;ArcGIS REST API docs&lt;/A&gt;&lt;SPAN&gt; is based on millisecond epoch time. When I called applyEdits with the date in that format, it went through fine. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Form the REST API:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;GPDate&lt;BR /&gt;The value for GPDate data type is a number that represents the number of milliseconds since epoch (January 1, 1970) in UTC.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 02:50:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-dijit-form-datetextbox-and-dijit-form/m-p/706902#M65792</guid>
      <dc:creator>AndrewLeane</dc:creator>
      <dc:date>2012-05-29T02:50:27Z</dc:date>
    </item>
  </channel>
</rss>

