<?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: Definition Query for Dates in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/definition-query-for-dates/m-p/371428#M21093</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Never used Oracle, but here's one result from googling 'Oracle date format':&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.oradev.com/oracle_date_format.jsp"&gt;http://www.oradev.com/oracle_date_format.jsp&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The 1899 date may be the base that the db starts from. Dates are generally represented internally to the computer as the number of days since a base date (1899... in this case, apparently), then displayed as a regular date. At least that's how they used to be done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think there's any way to update a date/time field automatically within the field itself. You could use a trigger to update at specified intervals or events, assuming your db is running at the time. You probably wouldn't want constant updating unless you have a lot of processing power anyway. Updating every second, even every minute, would use a lot of processing resources.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;edit: It's been a while since I've actually done any of this, so take the above with a grain of salt.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Feb 2011 23:17:44 GMT</pubDate>
    <dc:creator>Zeke</dc:creator>
    <dc:date>2011-02-08T23:17:44Z</dc:date>
    <item>
      <title>Definition Query for Dates</title>
      <link>https://community.esri.com/t5/data-management-questions/definition-query-for-dates/m-p/371426#M21091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Im struggling to create a query that will pick up dates in a date field.&amp;nbsp; I have tried several versions with ' and " and brackets and all sorts.&amp;nbsp; I'm using the 'Get Unique Values' button to so should be simple?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Field Name: CLOSE_DATE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Layer: NSG_Lines&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DB: CORPDATA&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My Query: CLOSE_DATE = date '1899-12-30 00:00:00'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Error: There was an error with the expression. Underlying DBMS error [ORA-01861: literal does not match format string][CORPDATA.NSG_Lines]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The data is sitting in Oracle 9i&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris .&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 09:48:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/definition-query-for-dates/m-p/371426#M21091</guid>
      <dc:creator>CMcDonald</dc:creator>
      <dc:date>2010-04-15T09:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Query for Dates</title>
      <link>https://community.esri.com/t5/data-management-questions/definition-query-for-dates/m-p/371427#M21092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had the exact same date (a default?) come up for me when I was trying to create a Date/Time field in ArcPAD 10 and I am going nuts trying to get at the 'code' that creates the format of &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;YYYY-MM-DD HH:MM:SS.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I want to know from you is how to get the date/time field to change automatically?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan B&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eureka, CA&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 21:34:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/definition-query-for-dates/m-p/371427#M21092</guid>
      <dc:creator>DanielBrenner</dc:creator>
      <dc:date>2011-02-08T21:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Query for Dates</title>
      <link>https://community.esri.com/t5/data-management-questions/definition-query-for-dates/m-p/371428#M21093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Never used Oracle, but here's one result from googling 'Oracle date format':&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.oradev.com/oracle_date_format.jsp"&gt;http://www.oradev.com/oracle_date_format.jsp&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The 1899 date may be the base that the db starts from. Dates are generally represented internally to the computer as the number of days since a base date (1899... in this case, apparently), then displayed as a regular date. At least that's how they used to be done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think there's any way to update a date/time field automatically within the field itself. You could use a trigger to update at specified intervals or events, assuming your db is running at the time. You probably wouldn't want constant updating unless you have a lot of processing power anyway. Updating every second, even every minute, would use a lot of processing resources.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;edit: It's been a while since I've actually done any of this, so take the above with a grain of salt.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 23:17:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/definition-query-for-dates/m-p/371428#M21093</guid>
      <dc:creator>Zeke</dc:creator>
      <dc:date>2011-02-08T23:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Query for Dates</title>
      <link>https://community.esri.com/t5/data-management-questions/definition-query-for-dates/m-p/371429#M21094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Dan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you ever find out how to get that format? I'm trying to do that same thing in arcpad 8&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;James&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 21:23:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/definition-query-for-dates/m-p/371429#M21094</guid>
      <dc:creator>jamesbanting</dc:creator>
      <dc:date>2011-04-26T21:23:59Z</dc:date>
    </item>
  </channel>
</rss>

