<?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: Date Format Dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-dynamically/m-p/484860#M16070</link>
    <description>&lt;P&gt;The official API described in the ABAP documentation is class CL_ABAP_DATFM.&lt;/P&gt;</description>
    <pubDate>Sat, 27 May 2017 15:16:04 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2017-05-27T15:16:04Z</dc:date>
    <item>
      <title>Date Format Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-dynamically/m-p/484859#M16069</link>
      <description>&lt;P&gt;Folks,&lt;/P&gt;&lt;P&gt;Any standard FM which identifies the Source field's date format and then converts it to the User specific Date format into the target field.&lt;/P&gt;&lt;P&gt;Source Field : Will have date but we are not sure in which format it will be.&lt;/P&gt;&lt;P&gt;1.Identify the date format in the Source field.( any SAP Standard FM  for this ?)&lt;/P&gt;&lt;P&gt;2.Get the User Specific date format using SLS_MISC_GET_USER_DATE_FORMAT.&lt;/P&gt;&lt;P&gt;3.Convert the Source field date into User Specific date format using step2.&lt;/P&gt;&lt;P&gt;Steps 2 and 3, I was able to but looking for any Standard FM  for step 1 or any standard FM which includes all the 3 steps.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2017 10:49:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-dynamically/m-p/484859#M16069</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2017-05-27T10:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-dynamically/m-p/484860#M16070</link>
      <description>&lt;P&gt;The official API described in the ABAP documentation is class CL_ABAP_DATFM.&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2017 15:16:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-dynamically/m-p/484860#M16070</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-05-27T15:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-dynamically/m-p/484861#M16071</link>
      <description>&lt;P&gt;No FM or method will always be able to distinguish DDMMYYYY vs MMDDYYYY for days lower or equal to 12. Nevertheless you could try CL_ABAP_DATFM=&amp;gt;CONV_DATE_EXT_TO_INT, but better ask provider of the file...&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 06:21:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-dynamically/m-p/484861#M16071</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2017-05-29T06:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-dynamically/m-p/484862#M16072</link>
      <description>&lt;P&gt;Thanks Sandra &amp;amp; Raymond.&lt;/P&gt;&lt;P&gt;I had checked CL_ABAP_DATFM but none of its methods will be able to get us the dateformat code with input as date ( possible values 1,2,3,4,5,6,7,8,9,A,B,C - refer to value range of XUDATFM ).&lt;/P&gt;&lt;P&gt;Not sure in which format the date will be in the source field but whatever the format it might be, I need to get the YYYYMMDD format in the target field.&lt;/P&gt;&lt;P&gt;Hence,I did like below.&lt;/P&gt;&lt;P&gt;1.Got the User specific date format code using CL_ABAP_DATFM=&amp;gt;GET_DATFM&lt;/P&gt;&lt;P&gt;2.Checking if XUDATFM is not 2.&lt;/P&gt;&lt;P&gt;3.If XUDATFM is not 2 then using CL_ABAP_DATFM=&amp;gt;CONV_DATE_EXT_TO_INT to convert the external date format into internal date format.&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 11:07:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-dynamically/m-p/484862#M16072</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2017-05-29T11:07:22Z</dc:date>
    </item>
  </channel>
</rss>

