<?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: Sy-DATUM Format and display. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-datum-format-and-display/m-p/12562615#M2007806</link>
    <description>&lt;P&gt;Thanks, must use more ABAP Keyword Documentation before coming asking questioNs, thanks you....&lt;/P&gt;</description>
    <pubDate>Mon, 15 Aug 2022 10:49:29 GMT</pubDate>
    <dc:creator>d4xtian</dc:creator>
    <dc:date>2022-08-15T10:49:29Z</dc:date>
    <item>
      <title>Sy-DATUM Format and display.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-datum-format-and-display/m-p/12562612#M2007803</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
  &lt;P&gt;The format of Sy-datum is YYYYMMDD right...&lt;/P&gt;
  &lt;P&gt;1 - when you display sy-datum it print it the following format DD.MM.YYY&lt;/P&gt;
  &lt;P&gt;2 - when you assign sy-datum to a variable and you display it we get : DDMMYY&lt;/P&gt;
  &lt;P&gt;3 - If i want to extract only the MM, i need to use pos and number, knowing the format is YYYYMMDD&lt;/P&gt;
  &lt;P&gt; so &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;v_month = sy-datum+4(2)&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;A href="https://answers.sap.com/storage/temp/2084539-date.png" data-attachment="2084539"&gt;date.png&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://answers.sap.com/storage/temp/2084540-capture-decran-2022-08-14-113623.png" data-attachment="2084540"&gt;capture-decran-2022-08-14-113623.png&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;my question is that's mean the sy-datum is automatically convert the format of the date when it is displaying ?&lt;/P&gt;
  &lt;P&gt;but there french and britain format that are same and us format, so i ll use the format of base where the server is ?&lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2022 10:42:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-datum-format-and-display/m-p/12562612#M2007803</guid>
      <dc:creator>d4xtian</dc:creator>
      <dc:date>2022-08-14T10:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sy-DATUM Format and display.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-datum-format-and-display/m-p/12562613#M2007804</link>
      <description>&lt;P&gt;The country specified date is stored in Table T005X.&lt;/P&gt;&lt;P&gt;You can use for example  the command&lt;/P&gt;&lt;P&gt;SET COUNTRY 'EN"&lt;/P&gt;&lt;P&gt;or use string templates like:&lt;/P&gt;&lt;P&gt;|{ sy-datlo COUNTRY = 'US ' }| &lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-us/abendate_formats.htm" target="test_blank"&gt;https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-us/abendate_formats.htm&lt;/A&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2022 12:23:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-datum-format-and-display/m-p/12562613#M2007804</guid>
      <dc:creator>ThorstenHoefer</dc:creator>
      <dc:date>2022-08-14T12:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sy-DATUM Format and display.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-datum-format-and-display/m-p/12562614#M2007805</link>
      <description>&lt;P&gt;In ABAP, there are elementary types: C, D, N, etc.&lt;/P&gt;&lt;P&gt;Type D is for dates, which are 8 characters and internal format is YYYYMMDD (which itself is Gregorian calendar = today is year 2022, versus islamic calendar which could be year 1443 or 1444).&lt;/P&gt;&lt;P&gt;SY-DATUM is a variable of type D.&lt;/P&gt;&lt;P&gt;1 - depends on language environment&lt;/P&gt;&lt;P&gt;2 - depends on statement used and on language environment&lt;/P&gt;&lt;P&gt;3 - correct.&lt;/P&gt;&lt;P&gt;European format of dates is usually day followed by month, while US format is month followed by day.&lt;/P&gt;&lt;P&gt;For more information, see ABAP documentation:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A rel="nofollow" href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abendate_formats.htm"&gt;Date Formats&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A rel="nofollow" href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abencountry_formats.htm"&gt;Country-Specific Formats - Date formats&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sun, 14 Aug 2022 14:38:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-datum-format-and-display/m-p/12562614#M2007805</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-08-14T14:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sy-DATUM Format and display.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-datum-format-and-display/m-p/12562615#M2007806</link>
      <description>&lt;P&gt;Thanks, must use more ABAP Keyword Documentation before coming asking questioNs, thanks you....&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 10:49:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-datum-format-and-display/m-p/12562615#M2007806</guid>
      <dc:creator>d4xtian</dc:creator>
      <dc:date>2022-08-15T10:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sy-DATUM Format and display.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-datum-format-and-display/m-p/12562616#M2007807</link>
      <description>&lt;P&gt;Or use&lt;/P&gt;&lt;P&gt;   data(date_as_text) = |{ sy-datum date = user }|.&lt;/P&gt;&lt;P&gt;for the output in the users language.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 11:31:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-datum-format-and-display/m-p/12562616#M2007807</guid>
      <dc:creator>ascm</dc:creator>
      <dc:date>2022-08-15T11:31:22Z</dc:date>
    </item>
  </channel>
</rss>

