<?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 Is there any function module to convert the date format in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281403#M1218923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear ABAPers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any function module to convert the date format from dd.mm.yyyy to dd-mmm-yyyy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       I want to convert the date format from dd.mm.yyy to dd.mmm.yyy Eg.from 10.03.2008 to 10-mar-2009.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ashok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Mar 2009 04:36:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-10T04:36:31Z</dc:date>
    <item>
      <title>Is there any function module to convert the date format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281403#M1218923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear ABAPers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any function module to convert the date format from dd.mm.yyyy to dd-mmm-yyyy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       I want to convert the date format from dd.mm.yyy to dd.mmm.yyy Eg.from 10.03.2008 to 10-mar-2009.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ashok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 04:36:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281403#M1218923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T04:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any function module to convert the date format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281404#M1218924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FM HR_IN_GET_DATE_COMPONENTS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sravan Kumar on Mar 10, 2009 5:41 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 04:38:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281404#M1218924</guid>
      <dc:creator>former_member242255</dc:creator>
      <dc:date>2009-03-10T04:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any function module to convert the date format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281405#M1218925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can check IDATE,SDATE,LDATE Conversion Function module. Always search before posting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 04:39:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281405#M1218925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T04:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any function module to convert the date format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281406#M1218926</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;Refe to this link..[How to change date format from DD.MM.YYYY to DD-MMM-YYYY|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="6244851"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 04:39:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281406#M1218926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T04:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any function module to convert the date format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281407#M1218927</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;&lt;/P&gt;&lt;P&gt;As per my knowledge no FM like. But you can use Replace statement where '.' find you can replace '-'. Finally you can get requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;Md.MahaboobKhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 04:40:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281407#M1218927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T04:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any function module to convert the date format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281408#M1218928</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;Please use FM : &lt;STRONG&gt;CONVERT_DATE_TO_INTERN_FORMAT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;to convert date in to internal format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 04:43:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281408#M1218928</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-10T04:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any function module to convert the date format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281409#M1218929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friend look my following example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To format date fields, use the SAPscript SET DATE MASK command. Executing this command causes all subsequent date fields to be printed with the specified formatting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: SET DATE MASK = 'date_mask'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following templates may be used in the date mask:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DD day (two digits)&lt;/P&gt;&lt;P&gt;DDD name of day (abbreviated)&lt;/P&gt;&lt;P&gt;DDDD name of day (written out in full)&lt;/P&gt;&lt;P&gt;MM month (two digits)&lt;/P&gt;&lt;P&gt;MMM name of month (abbreviated)&lt;/P&gt;&lt;P&gt;MMMM name of month (written out in full)&lt;/P&gt;&lt;P&gt;YY year (two digits)&lt;/P&gt;&lt;P&gt;YYYY year (four digits)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LD day (formatted as for the L option)&lt;/P&gt;&lt;P&gt;LM month (formatted as for the L option)&lt;/P&gt;&lt;P&gt;LY year (formatted as for the L option)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other characters occurring in the mask are interpreted as simple text and are copied directly to the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming a current system date of March 1st, 1997.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: SET DATE MASK = 'Foster City, MM.DD.YY'&lt;/P&gt;&lt;P&gt;&amp;amp;DATE&amp;amp; -&amp;gt; Foster City, 03.01.97&lt;/P&gt;&lt;P&gt;&amp;amp;DATE(Z)&amp;amp; -&amp;gt; Foster City, 3.1.97&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: SET DATE MASK = 'MMMM DD, YYYY'&lt;/P&gt;&lt;P&gt;&amp;amp;DATE&amp;amp; -&amp;gt; March 01, 1997&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can revert to the standard setting by using the SET DATE MASK command again with an empty string in place of the date mask:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: SET DATE MASK = ' '&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 04:44:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281409#M1218929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T04:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any function module to convert the date format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281410#M1218930</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;The FM CONVERSION_EXIT_SDATE_OUTPUT will convert the date format 20090310 to 10.MAR.2009.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or the FM  CONVERSION_EXIT_IDATE_OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keerthi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Keerthy K on Mar 10, 2009 5:50 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 04:48:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281410#M1218930</guid>
      <dc:creator>keerthy_k</dc:creator>
      <dc:date>2009-03-10T04:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any function module to convert the date format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281411#M1218931</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;&lt;/P&gt;&lt;P&gt;try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


data: ws_input type sy-datum,
ws_date type char20.

ws_input = '20080321'.

CALL FUNCTION 'CONVERSION_EXIT_SDATE_OUTPUT'
EXPORTING
input = ws_input
IMPORTING
OUTPUT = ws_date
.

Replace All Occurences of '.' IN ws_date with '-'.

write ws_date.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 04:49:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281411#M1218931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T04:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any function module to convert the date format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281412#M1218932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the following piece of code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data d1 type d .&lt;/P&gt;&lt;P&gt;data d2(20).&lt;/P&gt;&lt;P&gt;d1 = sy-datum.&lt;/P&gt;&lt;P&gt;write sy-datum.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_SDATE_OUTPUT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    INPUT         = d1&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   OUTPUT        = d2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace all occurrences of '.' in d2 with '-'.&lt;/P&gt;&lt;P&gt;write / d2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would give you the desired output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 04:51:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281412#M1218932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T04:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any function module to convert the date format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281413#M1218933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     Try with the  following function modules these may help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_IDATE_OUTPUT External date OUTPUT conversion exit (e.g. 01JAN1994) &lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_LDATE_OUTPUT Internal date OUTPUT conversion exit (e.g. YYYYMMDD) &lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_SDATE_OUTPUT Internal date OUTPUT conversion exit (e.g. YYYYMMDD)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank U,&lt;/P&gt;&lt;P&gt;Jay....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 04:55:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281413#M1218933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T04:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any function module to convert the date format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281414#M1218934</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;go through the piece of code .....i hope u will get some help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA X_MONTH(11).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_LDATE_OUTPUT'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       INPUT         = SY-DATUM&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;       OUTPUT        = X_MONTH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ 'Month in words', X_MONTH+3(8).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can then concatenate according to the need with the date..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Ashu Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 04:56:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281414#M1218934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T04:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any function module to convert the date format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281415#M1218935</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;U can use FM /SAPDMC/LSM_DATE_CONVERT&lt;/P&gt;&lt;P&gt;to convert into both internal and External Date formats.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just need to give correct "date_format_in"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 05:02:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281415#M1218935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T05:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any function module to convert the date format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281416#M1218936</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 try using this function module:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

CONVERSION_EXIT_IDATE_OUTPUT

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 05:14:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281416#M1218936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T05:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any function module to convert the date format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281417#M1218937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create your own fumction module for this&lt;/P&gt;&lt;P&gt;Input the date in character 10 format and output the date also in character 10  format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following sample code will help you complete the logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data :&lt;/P&gt;&lt;P&gt;Date_in(10) TYPE C,&lt;/P&gt;&lt;P&gt;Date_out(10) type c,&lt;/P&gt;&lt;P&gt;To_mmm(3) type c,&lt;/P&gt;&lt;P&gt;l_separator,&lt;/P&gt;&lt;P&gt;l_dd(2),&lt;/P&gt;&lt;P&gt;l_mm(2),&lt;/P&gt;&lt;P&gt;l_yyyy(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Check the date in and find the separator&lt;/P&gt;&lt;P&gt;CONDENSE DATE_IN NO-GAPS.&lt;/P&gt;&lt;P&gt;  IF DATE_IN CN '0123456789 '.&lt;/P&gt;&lt;P&gt;    L_SEPARATOR = DATE_IN+SY-FDPOS(1).&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get date,month and year separated from the date_in&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF NOT L_SEPARATOR IS INITIAL.&lt;/P&gt;&lt;P&gt;        SPLIT DATE_IN AT L_SEPARATOR INTO L_DD L_MM L_YYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*convert the month number to text&lt;/P&gt;&lt;P&gt;*complete all month cases as shown for JAN&lt;/P&gt;&lt;P&gt;Case l_mm.&lt;/P&gt;&lt;P&gt;    when '1'.&lt;/P&gt;&lt;P&gt;       to_mmm = 'JAN'.&lt;/P&gt;&lt;P&gt;    when '2'.&lt;/P&gt;&lt;P&gt;    when '3'.&lt;/P&gt;&lt;P&gt;    when '4'.&lt;/P&gt;&lt;P&gt;    when '5'.&lt;/P&gt;&lt;P&gt;    when '6'.&lt;/P&gt;&lt;P&gt;    when '7'.&lt;/P&gt;&lt;P&gt;    when '8'.&lt;/P&gt;&lt;P&gt;    when '9'.&lt;/P&gt;&lt;P&gt;    when '10'.&lt;/P&gt;&lt;P&gt;    when '11'.&lt;/P&gt;&lt;P&gt;    when '12'.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*build the output date                        &lt;/P&gt;&lt;P&gt;Perform build_date using l_dd to_mmm l_yyyy '-'&lt;/P&gt;&lt;P&gt;		   CHANGING DATE_OUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM BUILD_DATE USING P_1&lt;/P&gt;&lt;P&gt;                      P_2&lt;/P&gt;&lt;P&gt;                      P_3&lt;/P&gt;&lt;P&gt;                      P_SEPARATOR&lt;/P&gt;&lt;P&gt;             CHANGING P_RESULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE P_1 P_SEPARATOR&lt;/P&gt;&lt;P&gt;              P_2 P_SEPARATOR&lt;/P&gt;&lt;P&gt;              P_3 INTO P_RESULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " BUILD_DATE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 05:48:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281417#M1218937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T05:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any function module to convert the date format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281418#M1218938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;REPORT  ZSAR_DATE_FORMAT.
TABLES: T247.
DATA : dd(2) TYPE c,
       mm(2) TYPE c,
      mon(3) TYPE c,
       yy(4) TYPE c,
new_date(11) TYPE c.

PARAMETERS: Date(10) TYPE C.

SPLIT Date AT '-' INTO dd mm yy.

SELECT SINGLE ktx FROM T247 INTO mon  WHERE spras = sy-langu
  AND mnr = mm.

  CONCATENATE dd '-' mon '-' yy INTO new_date.
  WRITE: / new_date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please run the above program to get your desired format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 06:40:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281418#M1218938</guid>
      <dc:creator>sarbajitm</dc:creator>
      <dc:date>2009-03-10T06:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any function module to convert the date format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281419#M1218939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashok!!&lt;/P&gt;&lt;P&gt;Are you still watching the thread? have not got your desired answer/output? If you get it, please mark the thread as ANSWERED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 11:27:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281419#M1218939</guid>
      <dc:creator>sarbajitm</dc:creator>
      <dc:date>2009-03-10T11:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any function module to convert the date format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281420#M1218940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi Ashok!!&lt;/P&gt;&lt;P&gt;&amp;gt; Are you still watching the thread? have not got your desired answer/output? If you get it, please mark the thread as ANSWERED.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thanks and Regards.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aren't you......??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 11:28:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281420#M1218940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T11:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any function module to convert the date format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281421#M1218941</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;&lt;/P&gt;&lt;P&gt;create custom function module or copy the below code in the report ..and use it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the out put for below is :----Convert a DATE field into a full format date eg. March 23, 2000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION Z_CONVERT_DATE_INTO_FULL_DATE.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local interface:&lt;/P&gt;&lt;P&gt;*"       IMPORTING&lt;/P&gt;&lt;P&gt;*"             VALUE(DATE) LIKE  SY-DATUM&lt;/P&gt;&lt;P&gt;*"       EXPORTING&lt;/P&gt;&lt;P&gt;*"             VALUE(FORMATTED_DATE)&lt;/P&gt;&lt;P&gt;*"       EXCEPTIONS&lt;/P&gt;&lt;P&gt;*"              INVALID_DATE&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: TTDTG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF T_DATE,&lt;/P&gt;&lt;P&gt;        YYYY(4) TYPE C,&lt;/P&gt;&lt;P&gt;        MM(2) TYPE C,&lt;/P&gt;&lt;P&gt;        DD(2) TYPE C,&lt;/P&gt;&lt;P&gt;      END OF T_DATE.&lt;/P&gt;&lt;P&gt;DATA: DAY(3) TYPE N.&lt;/P&gt;&lt;P&gt;DATA: VARNAME LIKE TTDTG-VARNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF DATE IS INITIAL.&lt;/P&gt;&lt;P&gt;  CLEAR FORMATTED_DATE.&lt;/P&gt;&lt;P&gt;  EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;check document date format&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    DATE = DATE&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    PLAUSIBILITY_CHECK_FAILED = 1.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;  RAISE INVALID_DATE.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE DATE TO T_DATE.&lt;/P&gt;&lt;P&gt;CONCATENATE '%%SAPSCRIPT_MMM_' T_DATE-MM INTO VARNAME.&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM TTDTG WHERE SPRAS = 'EN' AND VARNAME = VARNAME.&lt;/P&gt;&lt;P&gt;WRITE T_DATE-DD TO DAY.&lt;/P&gt;&lt;P&gt;CONCATENATE DAY ',' INTO DAY.&lt;/P&gt;&lt;P&gt;CONCATENATE TTDTG-VARVALUE DAY T_DATE-YYYY INTO FORMATTED_DATE&lt;/P&gt;&lt;P&gt;  SEPARATED BY SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the output is :--Convert a DATE field into a full format date eg. March 23, 2000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 11:38:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281421#M1218941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T11:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any function module to convert the date format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281422#M1218942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashok!!&lt;/P&gt;&lt;P&gt;Are you still watching the thread? have not got your desired answer/output? If you get it, please mark the thread as ANSWERED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 12:57:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-any-function-module-to-convert-the-date-format/m-p/5281422#M1218942</guid>
      <dc:creator>sarbajitm</dc:creator>
      <dc:date>2009-03-17T12:57:20Z</dc:date>
    </item>
  </channel>
</rss>

