<?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: BIGINT - STRING DATE FORMAT in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/BIGINT-STRING-DATE-FORMAT/m-p/2353382#M119579</link>
    <description>Hi&amp;nbsp;
&lt;BR /&gt;Convert the string value to a Date, and get the millseconds using the method getTime(), try this:
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 "....where job_UTC_Time&amp;gt;="+(TalendDate.parseDate("yyyy-MM-dd HH:mm:ss",context.[color=#5b5b5d][font=Verdana, Helvetica, Arial, sans-serif]
 &lt;FONT size="2"&gt;start_date)).getTime()+" and job_UTC_Time &amp;lt;="+&lt;/FONT&gt;[/font][/color](TalendDate.parseDate("yyyy-MM-dd HH:mm:ss",context.enddate)).getTime()
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
    <pubDate>Fri, 08 Apr 2016 04:48:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-04-08T04:48:42Z</dc:date>
    <item>
      <title>BIGINT - STRING DATE FORMAT</title>
      <link>https://community.qlik.com/t5/Talend-Studio/BIGINT-STRING-DATE-FORMAT/m-p/2353381#M119578</link>
      <description>&lt;P&gt;one of the column in my MySQL db table is&lt;BR /&gt;&lt;FONT color="#ff9999"&gt;&lt;STRONG&gt;"job_UTC_Time"&amp;nbsp; "BIGIINT" datatype - length 20&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;UTC_Time is in&lt;FONT color="#339933"&gt; milliseconds&lt;/FONT&gt;.&amp;nbsp; for example:&lt;STRONG&gt; &lt;FONT color="#339933"&gt;1451427036333&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;By using the tMySQLInput, I need to qurey all the columns includting job_UTC_time.&lt;BR /&gt;&lt;BR /&gt;The query should also include the where condition.&lt;BR /&gt;where &lt;FONT color="#ff3333"&gt;&lt;STRONG&gt;job_UTC_Time &amp;gt;= context.start_date and job_UTC_Time &amp;lt;= context.enddate&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;context variables are defined as string and default vale is set as &lt;FONT color="#336633"&gt;&lt;STRONG&gt;'2015-01-01 00:00:00' (start_date) and '2016-03-09 00:00:00' (enddate)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#ff3333"&gt;&lt;STRONG&gt;How can I compare BIGINT which hold data in milliseconds with start_date which is string?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;I could not attach screenshots as this forum throws errors :The server was unable to save the uploaded file.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 20:26:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/BIGINT-STRING-DATE-FORMAT/m-p/2353381#M119578</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-22T20:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: BIGINT - STRING DATE FORMAT</title>
      <link>https://community.qlik.com/t5/Talend-Studio/BIGINT-STRING-DATE-FORMAT/m-p/2353382#M119579</link>
      <description>Hi&amp;nbsp;
&lt;BR /&gt;Convert the string value to a Date, and get the millseconds using the method getTime(), try this:
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 "....where job_UTC_Time&amp;gt;="+(TalendDate.parseDate("yyyy-MM-dd HH:mm:ss",context.[color=#5b5b5d][font=Verdana, Helvetica, Arial, sans-serif]
 &lt;FONT size="2"&gt;start_date)).getTime()+" and job_UTC_Time &amp;lt;="+&lt;/FONT&gt;[/font][/color](TalendDate.parseDate("yyyy-MM-dd HH:mm:ss",context.enddate)).getTime()
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 08 Apr 2016 04:48:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/BIGINT-STRING-DATE-FORMAT/m-p/2353382#M119579</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-08T04:48:42Z</dc:date>
    </item>
  </channel>
</rss>

