<?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 search in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-search/m-p/4058319#M970137</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 need to search for a date range in the format DD.MM.YYYY-DD.MM.YYYY in some text such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Electricity Charges on 12.11.2001 to 12.12.2001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I extract that date range without using offsets as the date range could equally be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;12.11.2001 to 12.12.2001 Electricity Charges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am thinking of using regular expressions. Would this be the right way to go? I have never used them before are they simple to use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Jul 2008 14:16:04 GMT</pubDate>
    <dc:creator>IanStubbings</dc:creator>
    <dc:date>2008-07-01T14:16:04Z</dc:date>
    <item>
      <title>Date search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-search/m-p/4058319#M970137</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 need to search for a date range in the format DD.MM.YYYY-DD.MM.YYYY in some text such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Electricity Charges on 12.11.2001 to 12.12.2001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I extract that date range without using offsets as the date range could equally be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;12.11.2001 to 12.12.2001 Electricity Charges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am thinking of using regular expressions. Would this be the right way to go? I have never used them before are they simple to use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 14:16:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-search/m-p/4058319#M970137</guid>
      <dc:creator>IanStubbings</dc:creator>
      <dc:date>2008-07-01T14:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-search/m-p/4058320#M970138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just press F1 on &lt;STRONG&gt;SEARCH&lt;/STRONG&gt; in se38.you will get help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 14:21:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-search/m-p/4058320#M970138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T14:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Date search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-search/m-p/4058321#M970139</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;Try to use this logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: txt type string value 'Electricity Charges 01.07.2008 to 01.07.2008'.

data: date_to_search(10) type c,
        date type d.

write sy-datum to date_to_search using EDIT MASK 'LL__.__.____'.

if txt cs date_to_search.
  write: 'Success'.
else.
  write: 'Failure'.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 14:25:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-search/m-p/4058321#M970139</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2008-07-01T14:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Date search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-search/m-p/4058322#M970140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As it happens I've solved it myself but thank you for your help.- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; FIND REGEX '(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d'&lt;/P&gt;&lt;P&gt;      IN ls_open_items-sgtxt&lt;/P&gt;&lt;P&gt;      MATCH OFFSET lv_offset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 15:03:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-search/m-p/4058322#M970140</guid>
      <dc:creator>IanStubbings</dc:creator>
      <dc:date>2008-07-01T15:03:50Z</dc:date>
    </item>
  </channel>
</rss>

