<?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: convert the date in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-the-date/m-p/5431923#M1246240</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes..u r right..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i gave the solution as per the thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;converting date from 04/01/2009 to 4/1/2009&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To convert in above format my code works fine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Apr 2009 13:41:53 GMT</pubDate>
    <dc:creator>Mohamed_Mukhtar</dc:creator>
    <dc:date>2009-04-01T13:41:53Z</dc:date>
    <item>
      <title>convert the date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-the-date/m-p/5431919#M1246236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        Is there any FM to Convert the date from 04/01/2009 to 4/1/2009?&lt;/P&gt;&lt;P&gt;i want to remove the zero before the date and month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 13:02:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-the-date/m-p/5431919#M1246236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-01T13:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: convert the date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-the-date/m-p/5431920#M1246237</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;Test the following Sample Code it will solve out your problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: date like sy-datum.
data: day(2),
      month(2),
      year(4),
      cdate(10).

day = date+6(2).
month = date+4(2).
year = date+0(4).

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
  EXPORTING
    input         = day
 IMPORTING
   OUTPUT        = day
          .
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
  EXPORTING
    input         = month
 IMPORTING
   OUTPUT        = month
          .
CONCATENATE: day '/' month '/' year into cdate.

WRITE: cdate.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 13:35:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-the-date/m-p/5431920#M1246237</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-04-01T13:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: convert the date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-the-date/m-p/5431921#M1246238</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;PRE&gt;&lt;CODE&gt;DATA : wa_date(10) VALUE '04/01/2009',
       wa_mnt(2),
       wa_dt(2),
       wa_year(4).

SPLIT wa_date AT '/' INTO wa_mnt
                          wa_dt
                          wa_year.

CONCATENATE wa_mnt+1(1) wa_dt+1(1) wa_year INTO wa_date SEPARATED BY '/'.
BREAK-POINT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 13:35:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-the-date/m-p/5431921#M1246238</guid>
      <dc:creator>Mohamed_Mukhtar</dc:creator>
      <dc:date>2009-04-01T13:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: convert the date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-the-date/m-p/5431922#M1246239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, Always Learner&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code can create problem for date like &lt;STRONG&gt;24.12.2008&lt;/STRONG&gt; it will show it &lt;STRONG&gt;4/2/2008&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 13:39:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-the-date/m-p/5431922#M1246239</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-04-01T13:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: convert the date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-the-date/m-p/5431923#M1246240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes..u r right..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i gave the solution as per the thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;converting date from 04/01/2009 to 4/1/2009&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To convert in above format my code works fine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 13:41:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-the-date/m-p/5431923#M1246240</guid>
      <dc:creator>Mohamed_Mukhtar</dc:creator>
      <dc:date>2009-04-01T13:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: convert the date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-the-date/m-p/5431924#M1246241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any FM to Convert the date from 04/01/2009 to 4/1/2009?&lt;/P&gt;&lt;P&gt;i want to remove the zero before the date and month.&lt;/P&gt;&lt;P&gt;data:lv_date(10) type c,&lt;/P&gt;&lt;P&gt;       lv_day(2) type c,&lt;/P&gt;&lt;P&gt;       lv_month(2) type c,&lt;/P&gt;&lt;P&gt;      lv_year(4) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_date = '04/01/2009'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_year = lv_date+6(4).&lt;/P&gt;&lt;P&gt;lv_day = lv_date+0(2).&lt;/P&gt;&lt;P&gt;lv_month = lv_date+3(2).&lt;/P&gt;&lt;P&gt;if lv_day(1) = '0'.&lt;/P&gt;&lt;P&gt;  lv_day = lv_day+1(1).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if lv_month(1) = '0'.&lt;/P&gt;&lt;P&gt; lv_month = lv_month+1(1).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;concatenate&lt;/P&gt;&lt;P&gt;   lv_day&lt;/P&gt;&lt;P&gt;  lv_month&lt;/P&gt;&lt;P&gt;  lv_year&lt;/P&gt;&lt;P&gt;into lv_date&lt;/P&gt;&lt;P&gt;separated by '/'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: lv_date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 13:49:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-the-date/m-p/5431924#M1246241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-01T13:49:17Z</dc:date>
    </item>
  </channel>
</rss>

