<?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: Changing the date format in Scripts in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-date-format-in-scripts/m-p/1566328#M255860</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;/: SET DATE MASK = &amp;#145;MM/DD/YYYY&amp;#146;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;amp;V_DATE&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;/: SET DATE MASK = &amp;#145; &amp;#145;  &amp;lt;--TO switch off the date mask&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i am not very sure will this work for your requirement,as you said its 10 character field,so i dont know exactly whether this works correctly or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else,&lt;/P&gt;&lt;P&gt; you can use OFFSET of that 10 char variable, to print the way how you want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*  &amp;amp;V_DATE&lt;EM&gt;3(2)&amp;amp; / &amp;amp;V_DATE&lt;/EM&gt;0(2)&amp;amp; / &amp;amp;V_DATE+5(4)&amp;amp;&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;      -&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;    -&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;     -&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;        month           date                year&lt;/P&gt;&lt;P&gt;but make sure your date format always should be dd.mm.yyyy . here i have taken V_DATE as a date with 10 character length.&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;Srikanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Kidambi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Sep 2006 18:18:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-25T18:18:29Z</dc:date>
    <item>
      <title>Changing the date format in Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-date-format-in-scripts/m-p/1566327#M255859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using SAP scripts to print PO and the PO is printing the delvy date in dd.mm.yyyy format. The delvy date here is 10 char length and needs to be printed in mm/dd/yyyy. How can I write this logic in the text editor?&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;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 18:15:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-date-format-in-scripts/m-p/1566327#M255859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T18:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the date format in Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-date-format-in-scripts/m-p/1566328#M255860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;/: SET DATE MASK = &amp;#145;MM/DD/YYYY&amp;#146;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;amp;V_DATE&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;/: SET DATE MASK = &amp;#145; &amp;#145;  &amp;lt;--TO switch off the date mask&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i am not very sure will this work for your requirement,as you said its 10 character field,so i dont know exactly whether this works correctly or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else,&lt;/P&gt;&lt;P&gt; you can use OFFSET of that 10 char variable, to print the way how you want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*  &amp;amp;V_DATE&lt;EM&gt;3(2)&amp;amp; / &amp;amp;V_DATE&lt;/EM&gt;0(2)&amp;amp; / &amp;amp;V_DATE+5(4)&amp;amp;&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;      -&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;    -&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;     -&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;        month           date                year&lt;/P&gt;&lt;P&gt;but make sure your date format always should be dd.mm.yyyy . here i have taken V_DATE as a date with 10 character length.&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;Srikanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Kidambi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 18:18:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-date-format-in-scripts/m-p/1566328#M255860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T18:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the date format in Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-date-format-in-scripts/m-p/1566329#M255861</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;use command set date mask __/__/____.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in ur script editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 18:18:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-date-format-in-scripts/m-p/1566329#M255861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T18:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the date format in Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-date-format-in-scripts/m-p/1566330#M255862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Syntax /: SET DATE MASK = 'date_mask'&amp;lt;/b&amp;gt; &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;/: SET DATE MASK = 'MMMM DD, YYYY' &amp;amp;DATE&amp;amp; -&amp;gt; March 01, 1994 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 18:18:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-date-format-in-scripts/m-p/1566330#M255862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T18:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the date format in Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-date-format-in-scripts/m-p/1566331#M255863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see the following......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

Syntax /: SET DATE MASK = 'date_mask' 

The following templates may be used in the date mask: 

DD day (two digits) 
DDD name of day (abbreviated) 
DDDD name of day (written out in full) 
MM month (two digits) 
MMM name of month (abbreviated) 
MMMM name of month (written out in full) 
YY year (two digits) 
YYYY year (four digits) 

LD day (formatted as for the L option) 
LM month (formatted as for the L option) 
LY year (formatted as for the L option)

&amp;lt;b&amp;gt;/: SET DATE MASK = 'MM/DD/YYYY' &amp;amp;DATE&amp;amp; -&amp;gt; 09/26/2006&amp;lt;/b&amp;gt;



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 18:19:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-date-format-in-scripts/m-p/1566331#M255863</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-25T18:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the date format in Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-date-format-in-scripts/m-p/1566332#M255864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this but did not work. I have the date field next to a different field. I added this syntax in the next line and did not work.&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;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 18:38:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-date-format-in-scripts/m-p/1566332#M255864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T18:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the date format in Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-date-format-in-scripts/m-p/1566333#M255865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to place SET DATE MASK statement before you use date field in your script editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;/: SET DATE MASK = 'MM/DD/YYYY' &lt;/P&gt;&lt;P&gt;/: &amp;amp;V_DATE&amp;amp;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to switch off this masking, just use&lt;/P&gt;&lt;P&gt;/: SET DATE MASK = ' ' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 18:40:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-date-format-in-scripts/m-p/1566333#M255865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T18:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the date format in Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-date-format-in-scripts/m-p/1566334#M255866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put the SET DATE MASK statement before using the date field in your script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 18:42:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-date-format-in-scripts/m-p/1566334#M255866</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-25T18:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the date format in Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-date-format-in-scripts/m-p/1566335#M255867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Friends. I got it solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've awarded points to all.&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;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 19:01:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-date-format-in-scripts/m-p/1566335#M255867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T19:01:42Z</dc:date>
    </item>
  </channel>
</rss>

