<?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 conversion in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/896991#M54448</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the date in 'yyyy/mm/dd' format but I want the date in 'mm/dd/yy' format and to be stored in the variable in this format. Is there is any function module or code that enable me to do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 May 2005 14:55:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-05-12T14:55:29Z</dc:date>
    <item>
      <title>Date conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/896991#M54448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the date in 'yyyy/mm/dd' format but I want the date in 'mm/dd/yy' format and to be stored in the variable in this format. Is there is any function module or code that enable me to do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2005 14:55:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/896991#M54448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-12T14:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/896992#M54449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santhosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the write statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: f to g DD/MM/YY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2005 14:58:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/896992#M54449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-12T14:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/896993#M54450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I think you can help me out here.I know that it works with the write statement but I need to store the date in this form in a variable and concatenate it with other variables and then use the write statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2005 15:09:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/896993#M54450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-12T15:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/896994#M54451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about using at first write and at second step concatenate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2005 15:24:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/896994#M54451</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-05-12T15:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/896995#M54452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santhosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do something like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: w_date              type d value '20050512',
      w_char_date(8)      type c,
      w_other_string(100) type c,

WRITE: w_date to w_char_date DD/MM/YY.

CONCATENATE 'Other text' w_char_date into w_other_string.

WRITE: w_other_string.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Brad Williams&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2005 15:25:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/896995#M54452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-12T15:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/896996#M54453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Brad!!! I got it.It really helped.Just alittle more help would be just great. Now I have got 'Todate'by using sy-datum in the format 'mm/dd/yy' and I have to set the 'fromdate' i.e to the firstday of the month(just need to change the date part. i tried the OFFSET command and set it to '01' I am not getting it. if you could help me that would just great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2005 15:30:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/896996#M54453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-12T15:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/896997#M54454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try manipulating the string:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: w_date              type d value sy-datum,
      w_from_date(8)      type c,
      w_to_date(8)        type c,
      w_other_string(100) type c,
 
WRITE: w_date to w_to_date DD/MM/YY.
w_from_date = w_to_date.
w_from_date+0(2) = '01'.
 
CONCATENATE w_from_date ' to ' w_to_date into w_other_string.
 
WRITE: w_other_string.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should be fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please remember to award points to posts that have been useful to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2005 15:36:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/896997#M54454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-12T15:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/896998#M54455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Brad,It really solved my problem. I have awarded points for your help. Have a great week end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2005 16:03:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion/m-p/896998#M54455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-12T16:03:22Z</dc:date>
    </item>
  </channel>
</rss>

