<?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 Converting Java dates to Julian Dates in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Converting-Java-dates-to-Julian-Dates/m-p/2325258#M94874</link>
    <description>how do you convert Java dates to julian dates using talend?</description>
    <pubDate>Sat, 16 Nov 2024 13:45:40 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2024-11-16T13:45:40Z</dc:date>
    <item>
      <title>Converting Java dates to Julian Dates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Converting-Java-dates-to-Julian-Dates/m-p/2325258#M94874</link>
      <description>how do you convert Java dates to julian dates using talend?</description>
      <pubDate>Sat, 16 Nov 2024 13:45:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Converting-Java-dates-to-Julian-Dates/m-p/2325258#M94874</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T13:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Java dates to Julian Dates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Converting-Java-dates-to-Julian-Dates/m-p/2325259#M94875</link>
      <description>Hi Jamie, 
&lt;BR /&gt; 
&lt;BR /&gt;After speaking directly, we found that Jamie was trying to convert longs (number of milliseconds since the epoch) to regular date fields. 
&lt;BR /&gt; 
&lt;BR /&gt;In order to do this, we need to read the data in as a long, and then convert it to a date type. I used a tMap from the long to date (dont forget to set the date format in the schema to "MM/dd/yyyy"), and the transform expression for the date field is: 
&lt;BR /&gt; 
&lt;BR /&gt;new Date(row1.LongDate) 
&lt;BR /&gt; 
&lt;BR /&gt;output looks like: 
&lt;BR /&gt; 
&lt;BR /&gt;1240001474750|04/17/2009 
&lt;BR /&gt;1240770188953|04/26/2009 
&lt;BR /&gt;1241957891640|05/10/2009 
&lt;BR /&gt;1242236149265|05/13/2009 
&lt;BR /&gt;1242070538187|05/11/2009 
&lt;BR /&gt;1242300633500|05/14/2009 
&lt;BR /&gt;1245587646531|06/21/2009 
&lt;BR /&gt;1245684007687|06/22/2009 
&lt;BR /&gt;1190027854328|09/17/2007 
&lt;BR /&gt; 
&lt;BR /&gt;HTH, 
&lt;BR /&gt; 
&lt;BR /&gt;Thomas</description>
      <pubDate>Tue, 22 Sep 2009 17:04:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Converting-Java-dates-to-Julian-Dates/m-p/2325259#M94875</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-09-22T17:04:38Z</dc:date>
    </item>
  </channel>
</rss>

