<?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: How to convert EST to IST with tjava component? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-EST-to-IST-with-tjava-component/m-p/2272502#M49757</link>
    <description>&lt;P&gt;Issue resolved with below codes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;String inptdate = input_row.Date;&lt;BR /&gt;SimpleDateFormat sdfgmt = new SimpleDateFormat("MM/dd/yyyy");&lt;BR /&gt;sdfgmt.setTimeZone(TimeZone.getTimeZone("IST"));&lt;BR /&gt;SimpleDateFormat sdfmad = new SimpleDateFormat("MM/dd/yyyy 'at' hh:mma z");&lt;BR /&gt;sdfmad.setTimeZone(TimeZone.getTimeZone("EST"));&lt;BR /&gt;Date date = sdfgmt.parse(inptdate);&lt;/P&gt;&lt;P&gt;output_row.Date = sdfmad.format(date);&lt;BR /&gt;&lt;BR /&gt;String inptdate1 = input_row.Date;&lt;BR /&gt;SimpleDateFormat sdfgmt1 = new SimpleDateFormat("MM/dd/yyyy");&lt;BR /&gt;sdfgmt1.setTimeZone(TimeZone.getTimeZone("IST"));&lt;BR /&gt;SimpleDateFormat sdfmad1 = new SimpleDateFormat("dd MMMM yyyy zzzz");&lt;BR /&gt;sdfmad1.setTimeZone(TimeZone.getTimeZone("IST"));&lt;BR /&gt;Date date1 = sdfgmt1.parse(inptdate1);&lt;BR /&gt;output_row.Date1 = sdfmad1.format(date1);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;String inptdate2 = input_row.Date;&lt;BR /&gt;SimpleDateFormat sdfgmt2 = new SimpleDateFormat("MM/dd/yyyy");&lt;BR /&gt;sdfgmt2.setTimeZone(TimeZone.getTimeZone("IST"));&lt;BR /&gt;SimpleDateFormat sdfmad2 = new SimpleDateFormat("EEE, MMM dd HH:mm:ss zzz yyyy");&lt;BR /&gt;sdfmad2.setTimeZone(TimeZone.getTimeZone("IST"));&lt;BR /&gt;Date date2 = sdfgmt2.parse(inptdate2);&lt;BR /&gt;output_row.Date2 = sdfmad2.format(date2);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG border="0" /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Luqk"&gt;Output.png&lt;/A&gt;</description>
    <pubDate>Fri, 22 Feb 2019 08:38:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-02-22T08:38:23Z</dc:date>
    <item>
      <title>How to convert EST to IST with tjava component?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-EST-to-IST-with-tjava-component/m-p/2272499#M49754</link>
      <description>&lt;P&gt;How to convert EST to IST with tjava component?&lt;/P&gt;&lt;P&gt;Input data:&lt;/P&gt;&lt;P&gt;03/10/2019&lt;/P&gt;&lt;P&gt;Output should be in below format:&lt;/P&gt;&lt;P&gt;"EEE, MMM dd HH:mm:ss 'EST' yyyy"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But receiving the output in IST format only. Appreciate your kind help.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 19:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-EST-to-IST-with-tjava-component/m-p/2272499#M49754</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-18T19:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert EST to IST with tjava component?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-EST-to-IST-with-tjava-component/m-p/2272500#M49755</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is your question -&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/54684583/how-to-fix-date-format-issue-in-talend/54687280?noredirect=1#comment96279984_54687280" target="_self" rel="nofollow noopener noreferrer"&gt;https://stackoverflow.com/questions/54684583/how-to-fix-date-format-issue-in-talend/54687280?noredirect=1#comment96279984_54687280&lt;/A&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as mentioned there, the same question here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;do you want real conversion?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in this case &lt;STRONG&gt;all&lt;/STRONG&gt; you dates will be converted to date + EST time&lt;/P&gt;&lt;P&gt;or you just want to use print the same date with 00:00:00 for time and just add EST?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if just print, you could set JVM timezone to EST&lt;/P&gt;&lt;PRE&gt;TalendDate.formatDate("EEE, MMM dd HH:mm:ss 'EST' yyyy",row1.strDate) &lt;/PRE&gt;&lt;P&gt;because your input does not contain the time, your output in&lt;STRONG&gt; proper EST&lt;/STRONG&gt; will always have format like&lt;/P&gt;&lt;PRE&gt;Sun, Mar 10 &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;13:30:00&lt;/STRONG&gt;&lt;/FONT&gt; EST 2019&lt;/PRE&gt;&lt;P&gt;but if you do not need time, do as above&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 21:21:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-EST-to-IST-with-tjava-component/m-p/2272500#M49755</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-02-18T21:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert EST to IST with tjava component?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-EST-to-IST-with-tjava-component/m-p/2272501#M49756</link>
      <description>&lt;P&gt;Thank you for your reply!&amp;nbsp;&lt;/P&gt;&lt;P&gt;via using the above statement..I get the output in the IST format with the hard coded value 'EST'.&amp;nbsp; No worries I write a java code in tjavarow to convert the IST to EST format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But now the issue is that - the output is not getting in the Column3. For the Column3 I have written a java code. Please find below:&lt;/P&gt;&lt;P&gt;SimpleDateFormat FORMATTER = new SimpleDateFormat("MM/dd/yyyy 'at' hh:mma z");&lt;BR /&gt;TimeZone istTimeZone = TimeZone.getTimeZone("Asia/Kolkata"); //Source timezone&lt;BR /&gt;TimeZone etTimeZone = TimeZone.getTimeZone("America/New_York"); //Target timezone&lt;BR /&gt;Calendar Date = Calendar.getInstance(etTimeZone);&lt;BR /&gt;FORMATTER.setTimeZone(etTimeZone);&lt;BR /&gt;System.out.println(FORMATTER.format(Date.getTime()));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output should be like this: Please find attached screenshot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me to get the correct output in Column3. Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lv1Q"&gt;OutputConsole.png&lt;/A&gt;</description>
      <pubDate>Tue, 19 Feb 2019 11:51:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-EST-to-IST-with-tjava-component/m-p/2272501#M49756</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-19T11:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert EST to IST with tjava component?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-EST-to-IST-with-tjava-component/m-p/2272502#M49757</link>
      <description>&lt;P&gt;Issue resolved with below codes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;String inptdate = input_row.Date;&lt;BR /&gt;SimpleDateFormat sdfgmt = new SimpleDateFormat("MM/dd/yyyy");&lt;BR /&gt;sdfgmt.setTimeZone(TimeZone.getTimeZone("IST"));&lt;BR /&gt;SimpleDateFormat sdfmad = new SimpleDateFormat("MM/dd/yyyy 'at' hh:mma z");&lt;BR /&gt;sdfmad.setTimeZone(TimeZone.getTimeZone("EST"));&lt;BR /&gt;Date date = sdfgmt.parse(inptdate);&lt;/P&gt;&lt;P&gt;output_row.Date = sdfmad.format(date);&lt;BR /&gt;&lt;BR /&gt;String inptdate1 = input_row.Date;&lt;BR /&gt;SimpleDateFormat sdfgmt1 = new SimpleDateFormat("MM/dd/yyyy");&lt;BR /&gt;sdfgmt1.setTimeZone(TimeZone.getTimeZone("IST"));&lt;BR /&gt;SimpleDateFormat sdfmad1 = new SimpleDateFormat("dd MMMM yyyy zzzz");&lt;BR /&gt;sdfmad1.setTimeZone(TimeZone.getTimeZone("IST"));&lt;BR /&gt;Date date1 = sdfgmt1.parse(inptdate1);&lt;BR /&gt;output_row.Date1 = sdfmad1.format(date1);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;String inptdate2 = input_row.Date;&lt;BR /&gt;SimpleDateFormat sdfgmt2 = new SimpleDateFormat("MM/dd/yyyy");&lt;BR /&gt;sdfgmt2.setTimeZone(TimeZone.getTimeZone("IST"));&lt;BR /&gt;SimpleDateFormat sdfmad2 = new SimpleDateFormat("EEE, MMM dd HH:mm:ss zzz yyyy");&lt;BR /&gt;sdfmad2.setTimeZone(TimeZone.getTimeZone("IST"));&lt;BR /&gt;Date date2 = sdfgmt2.parse(inptdate2);&lt;BR /&gt;output_row.Date2 = sdfmad2.format(date2);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG border="0" /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Luqk"&gt;Output.png&lt;/A&gt;</description>
      <pubDate>Fri, 22 Feb 2019 08:38:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-EST-to-IST-with-tjava-component/m-p/2272502#M49757</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-22T08:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert EST to IST with tjava component?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-EST-to-IST-with-tjava-component/m-p/2272503#M49758</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LPFoAAO"&gt;@pgajghate&lt;/A&gt;&amp;nbsp;wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;Issue resolved with below codes:&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;&lt;IMG border="0" /&gt;&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;Congratulations!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;but this is not what was asking for &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-02-23 at 11.05.56 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2ck.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140171i01CAA4D1594C22C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2ck.png" alt="0683p000009M2ck.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;this is why I asked you about time difference, which you have in your final output&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-inline" image-alt="Output.png" style="width: 814px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2hV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132448i95F933CD321FDFDC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2hV.png" alt="0683p000009M2hV.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;any time when expecting a proper answer - you must ask a proper question! &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;in any case - welcome!&lt;/P&gt; 
&lt;P&gt;P.S.&lt;/P&gt; 
&lt;P&gt;why did I think it is the same question?&lt;/P&gt; 
&lt;P&gt;because it uses the same answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Feb 2019 10:16:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-EST-to-IST-with-tjava-component/m-p/2272503#M49758</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-02-23T10:16:29Z</dc:date>
    </item>
  </channel>
</rss>

