<?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 How to get Last modified date from tfileProperties in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-Last-modified-date-from-tfileProperties/m-p/2306848#M78343</link>
    <description>Hello, I want to extract file's last modified date and month. I am using tFileProperties (mtime_string) column but what I get is the date and time of file's last reference(i.e. when my job refers to tFileList and the file ultimately therein.) I am not modifying the file in anyway from my job.
&lt;BR /&gt;What I expect is ---- If the file is zipped on say 3rd May 2016 and my job is running on 5th May 2016 then I want last modified date of the file as 3rd May 2016. Plz note the file is zipped file. How can I achieve this ? I also tried using Java code as below but it gives the same result i.e date and time job is running :
&lt;BR /&gt;
&lt;PRE&gt;// assuming the correct filepath is given &lt;BR /&gt;Long lastModified = file.lastModified();&lt;BR /&gt;Date date = new Date(lastModified);&lt;/PRE&gt;</description>
    <pubDate>Thu, 05 May 2016 10:00:55 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2016-05-05T10:00:55Z</dc:date>
    <item>
      <title>How to get Last modified date from tfileProperties</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-Last-modified-date-from-tfileProperties/m-p/2306848#M78343</link>
      <description>Hello, I want to extract file's last modified date and month. I am using tFileProperties (mtime_string) column but what I get is the date and time of file's last reference(i.e. when my job refers to tFileList and the file ultimately therein.) I am not modifying the file in anyway from my job.
&lt;BR /&gt;What I expect is ---- If the file is zipped on say 3rd May 2016 and my job is running on 5th May 2016 then I want last modified date of the file as 3rd May 2016. Plz note the file is zipped file. How can I achieve this ? I also tried using Java code as below but it gives the same result i.e date and time job is running :
&lt;BR /&gt;
&lt;PRE&gt;// assuming the correct filepath is given &lt;BR /&gt;Long lastModified = file.lastModified();&lt;BR /&gt;Date date = new Date(lastModified);&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 May 2016 10:00:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-Last-modified-date-from-tfileProperties/m-p/2306848#M78343</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2016-05-05T10:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Last modified date from tfileProperties</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-Last-modified-date-from-tfileProperties/m-p/2306849#M78344</link>
      <description>Hi, 
&lt;BR /&gt;Could you please take a look at a related forum: 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCoPdCAK" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Get-last-modified-date-of-a-file-and-perform-action/td-p/94376&lt;/A&gt; to see if it works well for your use case? 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina</description>
      <pubDate>Fri, 06 May 2016 05:51:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-Last-modified-date-from-tfileProperties/m-p/2306849#M78344</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-06T05:51:15Z</dc:date>
    </item>
  </channel>
</rss>

