<?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 Convert UTC date to US Central Time in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Convert-UTC-date-to-US-Central-Time/m-p/2356027#M121649</link>
    <description>&lt;P&gt;I am reading data from Salesforce objects. It has a date field in UTC format as shown below. How do i convert this date into US Central Time when loading into a file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000H7pkvAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152070i9A802CF6DBFD4C73/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000H7pkvAAB.png" alt="0695b00000H7pkvAAB.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 23:55:56 GMT</pubDate>
    <dc:creator>aambasht1626789554</dc:creator>
    <dc:date>2024-11-15T23:55:56Z</dc:date>
    <item>
      <title>Convert UTC date to US Central Time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-UTC-date-to-US-Central-Time/m-p/2356027#M121649</link>
      <description>&lt;P&gt;I am reading data from Salesforce objects. It has a date field in UTC format as shown below. How do i convert this date into US Central Time when loading into a file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000H7pkvAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152070i9A802CF6DBFD4C73/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000H7pkvAAB.png" alt="0695b00000H7pkvAAB.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:55:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-UTC-date-to-US-Central-Time/m-p/2356027#M121649</guid>
      <dc:creator>aambasht1626789554</dc:creator>
      <dc:date>2024-11-15T23:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Convert UTC date to US Central Time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-UTC-date-to-US-Central-Time/m-p/2356028#M121650</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;maybe TalendDate.parseDateLocale("EEE MMM dd HH:mm:ss z yyyy", String.valueOf(input_row.newColumn),"en-US");&lt;/P&gt;&lt;P&gt;Send me Love and kudos&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 14:44:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-UTC-date-to-US-Central-Time/m-p/2356028#M121650</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-07-20T14:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Convert UTC date to US Central Time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-UTC-date-to-US-Central-Time/m-p/2356029#M121651</link>
      <description>&lt;P&gt;Thanks! It appears that it doesn't convert to central time. Please see below, the left field is the input date in UTC and the right field is the converted date using the above code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000H7qkXAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142867iBC07F16B03A89F09/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000H7qkXAAR.png" alt="0695b00000H7qkXAAR.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 16:04:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-UTC-date-to-US-Central-Time/m-p/2356029#M121651</guid>
      <dc:creator>aambasht1626789554</dc:creator>
      <dc:date>2021-07-20T16:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Convert UTC date to US Central Time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-UTC-date-to-US-Central-Time/m-p/2356030#M121652</link>
      <description>&lt;P&gt;Maybe you can refer to this topic :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.talend.com/s/feed/0D73p000004kZwJCAU?language=en_US" alt="https://community.talend.com/s/feed/0D73p000004kZwJCAU?language=en_US" target="_blank"&gt;https://community.talend.com/s/feed/0D73p000004kZwJCAU?language=en_US&lt;/A&gt;&lt;/P&gt;&lt;P&gt;@Fred Trebuchet​&amp;nbsp;made a custom routine to convert utc to local time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 16:28:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-UTC-date-to-US-Central-Time/m-p/2356030#M121652</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-07-20T16:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Convert UTC date to US Central Time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-UTC-date-to-US-Central-Time/m-p/2356031#M121653</link>
      <description>&lt;P&gt;so you can write this routine :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;package routines;&lt;/P&gt;&lt;P&gt;import java.text.SimpleDateFormat;&lt;/P&gt;&lt;P&gt;import java.util.Date;&lt;/P&gt;&lt;P&gt;import java.util.TimeZone;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;public class TimeConvert {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;public static Date convertTzToTz(String strDate, String inTz, String outTz) throws Exception&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;if (strDate == null || inTz == null || outTz == null)&lt;/P&gt;&lt;P&gt;return null;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// Convert strDate from any valid timezone such Europe/Paris to another one&lt;/P&gt;&lt;P&gt;// strDate is expected to be formatted as "yyyy-MM-ddTHH:mm:ssZ"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SimpleDateFormat indfm = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");&lt;/P&gt;&lt;P&gt;indfm.setTimeZone(TimeZone.getTimeZone(inTz));&lt;/P&gt;&lt;P&gt;Date inDate = indfm.parse(strDate);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SimpleDateFormat outdfm = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");&lt;/P&gt;&lt;P&gt;outdfm.setTimeZone(TimeZone.getTimeZone(outTz));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;return TalendDate.parseDate("yyyy-MM-dd'T'HH:mm:ssZ",outdfm.format(inDate));&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and call it in your job :&lt;/P&gt;&lt;P&gt;TimeConvert.convertTzToTz((your input column),"UTC","US/Central");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;your input date have to be in string format and the output will be a date with the pattern you want in the output schema of the component :&lt;/P&gt;&lt;P&gt;if your input is in date format :&lt;/P&gt;&lt;P&gt;TimeConvert.convertTzToTz(TalendDate.formatDate("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",(your input)),"UTC","US/Central");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the result :&lt;/P&gt;&lt;P&gt;input :&lt;/P&gt;&lt;P&gt;2021-07-15T17:54:39.000Z&lt;/P&gt;&lt;P&gt;2021-07-15T17:54:48.000Z&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output:&lt;/P&gt;&lt;P&gt;15-07-2021 12:54:39&lt;/P&gt;&lt;P&gt;15-07-2021 12:54:48&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 09:35:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-UTC-date-to-US-Central-Time/m-p/2356031#M121653</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-07-21T09:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Convert UTC date to US Central Time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-UTC-date-to-US-Central-Time/m-p/2356032#M121654</link>
      <description>&lt;P&gt;Hi @anshumali ambasht​&amp;nbsp;, did you solve your issue ?&lt;/P&gt;&lt;P&gt;If one of my answer help you to achieve it, please select it as best answer.&lt;/P&gt;&lt;P&gt;Send me love and kudos&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 08:55:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-UTC-date-to-US-Central-Time/m-p/2356032#M121654</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-07-23T08:55:11Z</dc:date>
    </item>
  </channel>
</rss>

