<?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>question NiFi toDate in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-toDate/m-p/175881#M67634</link>
    <description>&lt;P&gt;I have an datetime attribute which looks something like this "2017-08-29T00:00:15.4945" which comes from a JSON file.&lt;/P&gt;&lt;P&gt;In my PutHDFS when I am trying to put files into a file structure I am trying to get Year/Month/Day.&lt;/P&gt;&lt;P&gt;My Directory: /data/events/${datetime:toDate("YYYY-MM-dd'T'HH:mm:ss.SSSS", "NZDT"):format("YYYY/MM/dd")}&lt;/P&gt;&lt;P&gt;This is nearly working but is putting 2017/01/01 but it should be 2017/08/29.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Brendan&lt;/P&gt;</description>
    <pubDate>Tue, 05 Sep 2017 10:39:12 GMT</pubDate>
    <dc:creator>brendan_smith</dc:creator>
    <dc:date>2017-09-05T10:39:12Z</dc:date>
    <item>
      <title>NiFi toDate</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-toDate/m-p/175881#M67634</link>
      <description>&lt;P&gt;I have an datetime attribute which looks something like this "2017-08-29T00:00:15.4945" which comes from a JSON file.&lt;/P&gt;&lt;P&gt;In my PutHDFS when I am trying to put files into a file structure I am trying to get Year/Month/Day.&lt;/P&gt;&lt;P&gt;My Directory: /data/events/${datetime:toDate("YYYY-MM-dd'T'HH:mm:ss.SSSS", "NZDT"):format("YYYY/MM/dd")}&lt;/P&gt;&lt;P&gt;This is nearly working but is putting 2017/01/01 but it should be 2017/08/29.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Brendan&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 10:39:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-toDate/m-p/175881#M67634</guid>
      <dc:creator>brendan_smith</dc:creator>
      <dc:date>2017-09-05T10:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi toDate</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-toDate/m-p/175882#M67635</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/16012/brendansmith.html" nodeid="16012"&gt;@Brendan Smith&lt;/A&gt;,&lt;BR /&gt;i'm using NiFi-1.1 and tried with the same datetime attribute as you have mentioned above.&lt;/P&gt;&lt;P&gt;The below expression is working perfectly fine for me.&lt;/P&gt;&lt;PRE&gt;/data/events/${date:toDate("yyyy-MM-dd'T'HH:mm:ss.SSSS"):format("yyyy-MM-dd")}&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;output:- &lt;/STRONG&gt;drwxr-xr-x   - nifi hdfs          0 2017-09-05 23:24 /data/events/2017-08-29&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 10:58:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-toDate/m-p/175882#M67635</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2017-09-06T10:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi toDate</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-toDate/m-p/175883#M67636</link>
      <description>&lt;P&gt;Interesting I copied what you had and it now works :O.&lt;/P&gt;&lt;P&gt;It looks like the difference in lower case and upper case is the difference here.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 11:16:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-toDate/m-p/175883#M67636</guid>
      <dc:creator>brendan_smith</dc:creator>
      <dc:date>2017-09-06T11:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi toDate</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-toDate/m-p/175884#M67637</link>
      <description>&lt;P&gt;Hi i have to convert twitter date to solr type: &lt;A href="https://lucene.apache.org/solr/guide/7_6/working-with-dates.html" target="_blank"&gt;https://lucene.apache.org/solr/guide/7_6/working-with-dates.html&lt;/A&gt; can someone help me?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 18:52:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-toDate/m-p/175884#M67637</guid>
      <dc:creator>esculco</dc:creator>
      <dc:date>2019-02-15T18:52:51Z</dc:date>
    </item>
  </channel>
</rss>

