<?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: date range last Monday to last Saturday in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/date-range-last-Monday-to-last-Saturday/m-p/2240577#M28016</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;You can implement by importing corresponding java Library to Talend code using tLibraray code and run the below code in the link.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/12783102/how-to-get-the-last-sunday-before-current-date" target="_blank" rel="nofollow noopener noreferrer"&gt;https://stackoverflow.com/questions/12783102/how-to-get-the-last-sunday-before-current-date&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Apr 2019 11:18:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-04-08T11:18:29Z</dc:date>
    <item>
      <title>date range last Monday to last Saturday</title>
      <link>https://community.qlik.com/t5/Talend-Studio/date-range-last-Monday-to-last-Saturday/m-p/2240576#M28015</link>
      <description>&lt;P&gt;Hi everyone I have an issue:&lt;/P&gt; 
&lt;P&gt;I have a table called orders and there's a column called "order_date" in datetime format.&lt;BR /&gt;Now I need a query which will select always the date range from last Monday 00:00:01 to last Saturday 23:59:59.&lt;/P&gt; 
&lt;P&gt;How I can build this query and which elements do I need? tMap only?&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;Thanks for any advice.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 09:57:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/date-range-last-Monday-to-last-Saturday/m-p/2240576#M28015</guid>
      <dc:creator>pawe84</dc:creator>
      <dc:date>2019-04-08T09:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: date range last Monday to last Saturday</title>
      <link>https://community.qlik.com/t5/Talend-Studio/date-range-last-Monday-to-last-Saturday/m-p/2240577#M28016</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;You can implement by importing corresponding java Library to Talend code using tLibraray code and run the below code in the link.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/12783102/how-to-get-the-last-sunday-before-current-date" target="_blank" rel="nofollow noopener noreferrer"&gt;https://stackoverflow.com/questions/12783102/how-to-get-the-last-sunday-before-current-date&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 11:18:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/date-range-last-Monday-to-last-Saturday/m-p/2240577#M28016</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-08T11:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: date range last Monday to last Saturday</title>
      <link>https://community.qlik.com/t5/Talend-Studio/date-range-last-Monday-to-last-Saturday/m-p/2240578#M28017</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have written a simple java code in tjava component which always fetches the date of last Monday and Saturday. This can be assigned to context variables and can be used in where condition while fetching data. But make sure to typecast it to just date (without timestamp) on both sides of where condition. So that no records will be missed due to difference in timestamp.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;int num_days = TalendDate.getPartOfDate("DAY_OF_WEEK",TalendDate.getCurrentDate());&lt;BR /&gt;System.out.println(TalendDate.addDate(TalendDate.getCurrentDate(),-num_days-5,"dd")); // Last Monday date&lt;BR /&gt;System.out.println(TalendDate.addDate(TalendDate.getCurrentDate(),-num_days,"dd")); // Last Saturday date&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Pratheek Manjunath&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 12:53:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/date-range-last-Monday-to-last-Saturday/m-p/2240578#M28017</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-08T12:53:11Z</dc:date>
    </item>
  </channel>
</rss>

