<?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>Question Re: How to caluculate difference in days between two dates in Product Lifecycle Management Q&amp;A</title>
    <link>https://community.sap.com/t5/product-lifecycle-management-q-a/how-to-caluculate-difference-in-days-between-two-dates/qaa-p/2850013#M12575</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try formatting the Repeater_0 values to &amp;lt;b&amp;gt;XML Dates&amp;lt;/b&amp;gt; first...as of now they are just &amp;lt;b&amp;gt;strings&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Sep 2007 15:46:59 GMT</pubDate>
    <dc:creator>salvatore_castro</dc:creator>
    <dc:date>2007-09-25T15:46:59Z</dc:date>
    <item>
      <title>How to caluculate difference in days between two dates</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/how-to-caluculate-difference-in-days-between-two-dates/qaq-p/2850010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please give suggestion how to find out the difference between two dates(difference should be in number of days)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tryed by the fallowing expression bellow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;datediffdatediffdays(Repeater_0.Output{/Row/afd} , Repeater_0.Output{/Row/sfd} )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;afd and sfd are two dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;afd and sfd are Data types of Date &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i Evaluate it was given error in valid date format parameters used as parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xMII datasource is MySQL database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please guide me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Srikanth M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Sep 2007 16:15:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/how-to-caluculate-difference-in-days-between-two-dates/qaq-p/2850010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-23T16:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to caluculate difference in days between two dates</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/how-to-caluculate-difference-in-days-between-two-dates/qaa-p/2850011#M12573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try executing the transaction? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably you will not see this error @ run time as the Dates would have some values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Sep 2007 19:36:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/how-to-caluculate-difference-in-days-between-two-dates/qaa-p/2850011#M12573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-23T19:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to caluculate difference in days between two dates</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/how-to-caluculate-difference-in-days-between-two-dates/qaa-p/2850012#M12574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Srikanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Evaluate will not work in this case because it really only has the column knowledge at design time (not the actual row of data that it will have iteratively at runtime).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function name in your post looks like a typo (datediffdays is the right name), and if you want to see it work put the expression in a tracer and hit F6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With your datasource being a relational database you would have a similar function in sql which is &amp;lt;a href="http://datediff"&amp;gt;http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending upon your needs you may be better off doing the datediff function in your SQL Query template and not in BLS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jeremy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Sep 2007 19:44:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/how-to-caluculate-difference-in-days-between-two-dates/qaa-p/2850012#M12574</guid>
      <dc:creator>jcgood25</dc:creator>
      <dc:date>2007-09-23T19:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to caluculate difference in days between two dates</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/how-to-caluculate-difference-in-days-between-two-dates/qaa-p/2850013#M12575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try formatting the Repeater_0 values to &amp;lt;b&amp;gt;XML Dates&amp;lt;/b&amp;gt; first...as of now they are just &amp;lt;b&amp;gt;strings&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2007 15:46:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/how-to-caluculate-difference-in-days-between-two-dates/qaa-p/2850013#M12575</guid>
      <dc:creator>salvatore_castro</dc:creator>
      <dc:date>2007-09-25T15:46:59Z</dc:date>
    </item>
  </channel>
</rss>

