<?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 conversion in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/5832820#M1316832</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;Using the Offset and Position you can buid the date as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;l_date = sy-datum+4(2).     " Month
l_date+2 =  sy-datum+6(2). " Date
l_date+4 =  sy-datum+2(2). " Year&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 27 Jun 2009 10:09:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-27T10:09:39Z</dc:date>
    <item>
      <title>Date conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/5832818#M1316830</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 req to convert the date format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im fetching ZALDT from PAYR the date format of this ZALDT in database table is MM/DD/YYYY.&lt;/P&gt;&lt;P&gt;After downloading the file to presentation server the date format in the file is displaying as YYYYMMDD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i want to convert the date format to MMDDYY without any separators.&lt;/P&gt;&lt;P&gt;I have tried so many options like EDIT mask, FM's, Offshifts but could not get any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. anybody help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jun 2009 05:46:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/5832818#M1316830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-27T05:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/5832819#M1316831</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;just check ABAP documentation for ABAP command WRITE. It's well described there. Just convert your date field to string using WRITE command and addition MMDDYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

WRITE zaldt TO l_output MMDDYY.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jun 2009 09:59:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/5832819#M1316831</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2009-06-27T09:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/5832820#M1316832</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;Using the Offset and Position you can buid the date as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;l_date = sy-datum+4(2).     " Month
l_date+2 =  sy-datum+6(2). " Date
l_date+4 =  sy-datum+2(2). " Year&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jun 2009 10:09:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/5832820#M1316832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-27T10:09:39Z</dc:date>
    </item>
  </channel>
</rss>

