<?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: Inconsistent Date field while fetching from csv to postgresSQL !!! in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Inconsistent-Date-field-while-fetching-from-csv-to-postgresSQL/m-p/2311249#M82307</link>
    <description>I'm not sure it's date conversion the issue&lt;BR /&gt;</description>
    <pubDate>Thu, 18 Jul 2019 16:14:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-07-18T16:14:03Z</dc:date>
    <item>
      <title>Inconsistent Date field while fetching from csv to postgresSQL !!!</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Inconsistent-Date-field-while-fetching-from-csv-to-postgresSQL/m-p/2311244#M82302</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt; 
&lt;P&gt;I am using postgreSQL and&amp;nbsp;trying to load a column from one table to another in the same db.&lt;/P&gt; 
&lt;P&gt;My source column is of VARCHAR type having date values. I am parsing this date and storing it in the target column as "yyyy-MM-dd" format in 'Date' datatype.&lt;/P&gt; 
&lt;P&gt;Problem: For some record the value is coming fine but for some records the date field is coming as one day before the actual date.&lt;/P&gt; 
&lt;P&gt;Conversion from string to date is as :&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;row5.seniority_date==null || row5.seniority_date.isEmpty() || row5.seniority_date.equals(" ")? null : TalendDate.parseDate("yyyy-MM-dd",TalendDate.formatDate("yyyy-MM-dd",TalendDate.parseDate("yyyy-MM-dd HH:mm:ss",(row5.seniority_date))))&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Please find attached screenshot for the same. Please help me to resolve this.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="DateIssue.PNG" style="width: 264px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M67M.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127826i599D458910E3098B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M67M.png" alt="0683p000009M67M.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 10:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Inconsistent-Date-field-while-fetching-from-csv-to-postgresSQL/m-p/2311244#M82302</guid>
      <dc:creator>gervit14</dc:creator>
      <dc:date>2019-07-11T10:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent Date field while fetching from csv to postgresSQL !!!</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Inconsistent-Date-field-while-fetching-from-csv-to-postgresSQL/m-p/2311245#M82303</link>
      <description>In case you are storing row5.seniority_date as varchar, I suggest you try : 
&lt;BR /&gt; 
&lt;BR /&gt;TalendDate.parseDate("yyyy-MM-dd HH:mm:ss",row2.seniority_date) 
&lt;BR /&gt; 
&lt;BR /&gt;I should normaly convert the varchar to date. 
&lt;BR /&gt;If you want to remove time, I suggest you first use StringHandling.LEFT(row2.seniority_date,10) to extract only date without time before convert to date 
&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Jul 2019 12:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Inconsistent-Date-field-while-fetching-from-csv-to-postgresSQL/m-p/2311245#M82303</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-11T12:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent Date field while fetching from csv to postgresSQL !!!</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Inconsistent-Date-field-while-fetching-from-csv-to-postgresSQL/m-p/2311246#M82304</link>
      <description>Still facing the same issue.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Jul 2019 14:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Inconsistent-Date-field-while-fetching-from-csv-to-postgresSQL/m-p/2311246#M82304</guid>
      <dc:creator>gervit14</dc:creator>
      <dc:date>2019-07-11T14:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent Date field while fetching from csv to postgresSQL !!!</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Inconsistent-Date-field-while-fetching-from-csv-to-postgresSQL/m-p/2311247#M82305</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000004Y0sgAAC"&gt;@gervit14&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In that case can you please try TalendDate.parseDate("yyyy-MM-dd",&lt;SPAN&gt;row5.seniority_date&lt;/SPAN&gt;.substring(0,10))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&lt;/P&gt;
&lt;P&gt;Subhadip&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 14:58:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Inconsistent-Date-field-while-fetching-from-csv-to-postgresSQL/m-p/2311247#M82305</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-11T14:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent Date field while fetching from csv to postgresSQL !!!</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Inconsistent-Date-field-while-fetching-from-csv-to-postgresSQL/m-p/2311248#M82306</link>
      <description>Hi Subhadip,&lt;BR /&gt;&lt;BR /&gt;The issue still persists. Still I am getting inconsistent data.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Jul 2019 10:53:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Inconsistent-Date-field-while-fetching-from-csv-to-postgresSQL/m-p/2311248#M82306</guid>
      <dc:creator>gervit14</dc:creator>
      <dc:date>2019-07-12T10:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent Date field while fetching from csv to postgresSQL !!!</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Inconsistent-Date-field-while-fetching-from-csv-to-postgresSQL/m-p/2311249#M82307</link>
      <description>I'm not sure it's date conversion the issue&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Jul 2019 16:14:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Inconsistent-Date-field-while-fetching-from-csv-to-postgresSQL/m-p/2311249#M82307</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-18T16:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent Date field while fetching from csv to postgresSQL !!!</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Inconsistent-Date-field-while-fetching-from-csv-to-postgresSQL/m-p/2311250#M82308</link>
      <description>Same I was thinking, may be postgres internal time zone need to be checked or something...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Jul 2019 05:31:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Inconsistent-Date-field-while-fetching-from-csv-to-postgresSQL/m-p/2311250#M82308</guid>
      <dc:creator>gervit14</dc:creator>
      <dc:date>2019-07-19T05:31:48Z</dc:date>
    </item>
  </channel>
</rss>

