<?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 converting in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-converting/m-p/3805897#M915425</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;data: v_date type sy-datum value '20080523'.&lt;/P&gt;&lt;P&gt;data: v_result(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate  v_date&lt;EM&gt;4(2) v_date&lt;/EM&gt;6(2) v_date+0(4) into v_result separated by '/'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ v_result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Velangini Showry Maria Kumar Bandanadham on May 23, 2008 2:52 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 May 2008 12:50:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-23T12:50:56Z</dc:date>
    <item>
      <title>date converting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-converting/m-p/3805896#M915424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to convert the date 20080523 into 05/23/2008. pls provide me the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sami&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 12:47:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-converting/m-p/3805896#M915424</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T12:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: date converting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-converting/m-p/3805897#M915425</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;data: v_date type sy-datum value '20080523'.&lt;/P&gt;&lt;P&gt;data: v_result(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate  v_date&lt;EM&gt;4(2) v_date&lt;/EM&gt;6(2) v_date+0(4) into v_result separated by '/'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ v_result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Velangini Showry Maria Kumar Bandanadham on May 23, 2008 2:52 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 12:50:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-converting/m-p/3805897#M915425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T12:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: date converting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-converting/m-p/3805898#M915426</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; You can use this function module:&lt;/P&gt;&lt;P&gt;CONVERT_DATE_TO_EXTERNAL&lt;/P&gt;&lt;P&gt;in import the variable should be of char type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 12:51:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-converting/m-p/3805898#M915426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T12:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: date converting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-converting/m-p/3805899#M915427</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;Check the code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: v_var1(10) type c,
        v_var2 type sy-datum.

v_var2 = sy-datum.

CONCATENATE v_var2+4(2) '/' v_var2+6(2) '/' v_var2+0(4) INTO v_var1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kannaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 12:51:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-converting/m-p/3805899#M915427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T12:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: date converting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-converting/m-p/3805900#M915428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use write Statment:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : date(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write sy-datum to date mm/dd/yyyy.  " writes 20080924 as 09/24/2008 in date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 12:54:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-converting/m-p/3805900#M915428</guid>
      <dc:creator>former_member125661</dc:creator>
      <dc:date>2008-05-23T12:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: date converting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-converting/m-p/3805901#M915429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also need add some code for this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: X TYPE D VALUE '20080523',
      Y(10) .

WRITE X MM/DD/YYYY TO Y.
REPLACE ALL OCCURRENCES OF '.' IN Y WITH '/'.
WRITE Y.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 12:57:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-converting/m-p/3805901#M915429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T12:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: date converting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-converting/m-p/3805902#M915430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
WRITE sy-datum TO lv_variable MM/DD/YYYY. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The content of a data object of type d is interpreted as a valid date in the format YYYYMMDD and is output as follows for the individual additions: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DD/MM/YY and MM/DD/YY: &lt;/P&gt;&lt;P&gt;Both additions have the same effect. The date output has a two-digit year value and a separator. The separator and the order are taken from the definition for date output in the user master record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DD/MM/YYYY und MM/DD/YYYY: &lt;/P&gt;&lt;P&gt;Both additions have the same effect. The date output has a four-digit year value and separator. The separator and the order are taken from the definition for date output in the user master record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DDMMYY und MMDDYY: &lt;/P&gt;&lt;P&gt;Both additions have the same effect. The date output has a two-digit year value and no separator. The order is taken from the definition for date output in the user master record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YYMMDD: &lt;/P&gt;&lt;P&gt;This addition provides a date output with a two-digit year value without a separator in the format YYMMDD. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the output length is defined implicitly or specified using len, this is used. If it is too short, the edited output is cut off to the right. If the output length is specified using * or **, it is set to the length of the specified edit mask (6, 8, or 10). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;The behavior for abbreviation differs from the output of a data in accordance with the user master record, where the separator is removed first and then cut off. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 13:01:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-converting/m-p/3805902#M915430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T13:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: date converting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-converting/m-p/3805903#M915431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Check this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: date1 type sy-datum value '20080523'.&lt;/P&gt;&lt;P&gt;data:result(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate date1&lt;EM&gt;4(2) date1&lt;/EM&gt;6(2) date1+0(4) into result separated by '/'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward me if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kinjal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 21:43:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-converting/m-p/3805903#M915431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T21:43:21Z</dc:date>
    </item>
  </channel>
</rss>

