<?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 change date format in select statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-date-format-in-select-statement/m-p/12605143#M2011307</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
  &lt;P&gt;i want to convert ERDAT to YYYY-MM-DD format directly in select statement in Database - MSSQL. &lt;/P&gt;
  &lt;P&gt;Date format YYYYMMDD to YYYY-MM-DD. is it possible?&lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Mon, 30 May 2022 08:34:20 GMT</pubDate>
    <dc:creator>shobhan_rana</dc:creator>
    <dc:date>2022-05-30T08:34:20Z</dc:date>
    <item>
      <title>change date format in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-date-format-in-select-statement/m-p/12605143#M2011307</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
  &lt;P&gt;i want to convert ERDAT to YYYY-MM-DD format directly in select statement in Database - MSSQL. &lt;/P&gt;
  &lt;P&gt;Date format YYYYMMDD to YYYY-MM-DD. is it possible?&lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 08:34:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-date-format-in-select-statement/m-p/12605143#M2011307</guid>
      <dc:creator>shobhan_rana</dc:creator>
      <dc:date>2022-05-30T08:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: change date format in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-date-format-in-select-statement/m-p/12605144#M2011308</link>
      <description>&lt;P&gt;Of course but the solution depends on the context of your development. Please clarify.&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 10:13:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-date-format-in-select-statement/m-p/12605144#M2011308</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-05-30T10:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: change date format in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-date-format-in-select-statement/m-p/12605145#M2011309</link>
      <description>&lt;P&gt;so strange to require a date format in a SELECT statement&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 10:54:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-date-format-in-select-statement/m-p/12605145#M2011309</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2022-05-30T10:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: change date format in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-date-format-in-select-statement/m-p/12605146#M2011310</link>
      <description>&lt;P&gt;      It works like follows but too late to do it in outside select.&lt;/P&gt;&lt;P&gt;    CONCATENATE ls_out-erdat+0(4)&lt;/P&gt;&lt;P&gt;                  ls_out-erdat+4(2)&lt;/P&gt;&lt;P&gt;                  ls_out-erdat+6(2) INTO ls_out-erdat SEPARATED BY '-'.&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 14:06:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-date-format-in-select-statement/m-p/12605146#M2011310</guid>
      <dc:creator>shobhan_rana</dc:creator>
      <dc:date>2022-05-30T14:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: change date format in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-date-format-in-select-statement/m-p/12605147#M2011311</link>
      <description>&lt;P&gt;but ERDAT is type Date ? or type CHAR10 ? &lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 14:07:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-date-format-in-select-statement/m-p/12605147#M2011311</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2022-05-30T14:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: change date format in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-date-format-in-select-statement/m-p/12605148#M2011312</link>
      <description>&lt;P&gt;Context is as follow. It is a normal select like ::&lt;/P&gt;&lt;P&gt;ERDAT ist 10 CHAR long.&lt;/P&gt;&lt;P&gt;REPORT ZCONTEXT.&lt;/P&gt;&lt;P&gt;Select single&lt;/P&gt;&lt;P&gt;CAST( erdat AS CHAR( 10 ) ) AS erdat,&lt;/P&gt;&lt;P&gt;from KNA1.&lt;/P&gt;&lt;P&gt;I just want to place "-" in between the year, month and date inside the select statement. so that it is JSON compatible date =&amp;gt; YYYY-MM-DD&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 14:18:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-date-format-in-select-statement/m-p/12605148#M2011312</guid>
      <dc:creator>shobhan_rana</dc:creator>
      <dc:date>2022-05-30T14:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: change date format in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-date-format-in-select-statement/m-p/12605149#M2011313</link>
      <description>&lt;P&gt;You have the following SQL functions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;CONCAT (also &amp;amp;&amp;amp;)&lt;/LI&gt;&lt;LI&gt;LEFT, SUBSTRING, RIGHT&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 30 May 2022 16:23:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-date-format-in-select-statement/m-p/12605149#M2011313</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-05-30T16:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: change date format in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-date-format-in-select-statement/m-p/12605150#M2011314</link>
      <description>&lt;P&gt;Sorry, this is really rather RTFM question that is impossible to answer without knowing technical details. You've mentioned it's MS SQL, so I'm guessing it's an older system and CDS views are not applicable in your case.&lt;/P&gt;&lt;P&gt;Look up documentation for SELECT statement for your ABAP version (use F1). All the functions will be described there, I doubt anyone can tell you something different here. There is also Native SQL option (which is covered in documentation) but I doubt it'll help or would be a good idea. &lt;/P&gt;&lt;P&gt;I'm curious about the context though and why is it important to do this in SELECT statement directly. I doubt it'll give you any "code pushdown" benefits.&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 18:01:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-date-format-in-select-statement/m-p/12605150#M2011314</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2022-05-31T18:01:20Z</dc:date>
    </item>
  </channel>
</rss>

