<?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 CURRENT_DATE function on ArcSDE SQL Server Database not working in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/current-date-function-on-arcsde-sql-server/m-p/638374#M36107</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/legacyfs/online/57973_SDE_CURRENT_DATE.PNG"&gt;&lt;IMG alt="SDE_CURRENT_DATE.PNG" class="image-1 jive-image" height="881" src="https://community.esri.com/legacyfs/online/57973_SDE_CURRENT_DATE.PNG" style="width: 620px; height: 509px;" width="1074" /&gt;&lt;/A&gt;I am writing a script to access data from each day. I would like to select by attribute and send these features to a local file geodatabase. After reading some documenation, CURRENT_DATE is the function which reads data for today. This is an example of my data '2015-02-02 00:00:00'. I don't have the time for any features, so in reality it is only YYYY-MM-DD. In a local file geodatabase, the query PlannedDate = CURRENT_DATE works. However in my ArcSDE SQL Server connection it does not. PlannedDate = GETDATE () does not work either, however no errors are being returned.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data is my table is m/d/yyyy The data when selecting by attribute is yyyy-mm-dd.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Feb 2015 18:30:19 GMT</pubDate>
    <dc:creator>GeoffreyWest</dc:creator>
    <dc:date>2015-02-02T18:30:19Z</dc:date>
    <item>
      <title>CURRENT_DATE function on ArcSDE SQL Server Database not working</title>
      <link>https://community.esri.com/t5/data-management-questions/current-date-function-on-arcsde-sql-server/m-p/638374#M36107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/legacyfs/online/57973_SDE_CURRENT_DATE.PNG"&gt;&lt;IMG alt="SDE_CURRENT_DATE.PNG" class="image-1 jive-image" height="881" src="https://community.esri.com/legacyfs/online/57973_SDE_CURRENT_DATE.PNG" style="width: 620px; height: 509px;" width="1074" /&gt;&lt;/A&gt;I am writing a script to access data from each day. I would like to select by attribute and send these features to a local file geodatabase. After reading some documenation, CURRENT_DATE is the function which reads data for today. This is an example of my data '2015-02-02 00:00:00'. I don't have the time for any features, so in reality it is only YYYY-MM-DD. In a local file geodatabase, the query PlannedDate = CURRENT_DATE works. However in my ArcSDE SQL Server connection it does not. PlannedDate = GETDATE () does not work either, however no errors are being returned.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data is my table is m/d/yyyy The data when selecting by attribute is yyyy-mm-dd.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 18:30:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/current-date-function-on-arcsde-sql-server/m-p/638374#M36107</guid>
      <dc:creator>GeoffreyWest</dc:creator>
      <dc:date>2015-02-02T18:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: CURRENT_DATE function on ArcSDE SQL Server Database not working</title>
      <link>https://community.esri.com/t5/data-management-questions/current-date-function-on-arcsde-sql-server/m-p/638375#M36108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Figured it out, PlannedDate = CONVERT(DATE, GETDATE())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 18:46:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/current-date-function-on-arcsde-sql-server/m-p/638375#M36108</guid>
      <dc:creator>GeoffreyWest</dc:creator>
      <dc:date>2015-02-02T18:46:53Z</dc:date>
    </item>
  </channel>
</rss>

