<?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 Date Formatting. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-formatting/m-p/1248189#M144200</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have a date which could be either 01.01.2006 or even 1.1.2006. Whenever the date appears as 1.1.2006, i need it to be converted to the format 01.01.2006. Can anyone providde me with the logic or is any FM available for this ?&lt;/P&gt;&lt;P&gt;Murali.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Apr 2006 04:14:02 GMT</pubDate>
    <dc:creator>Murali_Shanmu</dc:creator>
    <dc:date>2006-04-19T04:14:02Z</dc:date>
    <item>
      <title>Date Formatting.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-formatting/m-p/1248189#M144200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have a date which could be either 01.01.2006 or even 1.1.2006. Whenever the date appears as 1.1.2006, i need it to be converted to the format 01.01.2006. Can anyone providde me with the logic or is any FM available for this ?&lt;/P&gt;&lt;P&gt;Murali.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2006 04:14:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-formatting/m-p/1248189#M144200</guid>
      <dc:creator>Murali_Shanmu</dc:creator>
      <dc:date>2006-04-19T04:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Date Formatting.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-formatting/m-p/1248190#M144201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Murali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a FM for this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is CONVERT_DATE_INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: a(12).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:            b type sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_DATE_INPUT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    input                           = a&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PLAUSIBILITY_CHECK              = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   OUTPUT                          = b&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PLAUSIBILITY_CHECK_FAILED       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WRONG_FORMAT_IN_INPUT           = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                          = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will convert 1.1.2006 to 01.01.2006.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope your query is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2006 04:20:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-formatting/m-p/1248190#M144201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-19T04:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Date Formatting.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-formatting/m-p/1248191#M144202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field TCURR-GDATU is subject to a conversion routine INVDT&lt;/P&gt;&lt;P&gt; look at the CONVERSION_EXIT_INVDT_INPUT and&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_INVDT_OUTPUT function modules. Basically it converts the date to 8 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATUMSAUFBEREITUNG             Country-specific date formatting &lt;/P&gt;&lt;P&gt;DAYS_BETWEEN_TWO_DATES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Number of days is returned in the E_TAGE parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2006 04:23:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-formatting/m-p/1248191#M144202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-19T04:23:46Z</dc:date>
    </item>
  </channel>
</rss>

