<?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 Re: CAN NIFI TRANSFORM A COMPLEX TIMESTAMP ? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/CAN-NIFI-TRANSFORM-A-COMPLEX-TIMESTAMP/m-p/122333#M85089</link>
    <description>&lt;P&gt;One idea is to try an executeprocess and pass the raw date into a shell command like this:&lt;/P&gt;&lt;P&gt;echo "2016-07-06T15:04:33.332+00:00" | awk -F"T" '{print $1}' | sed 's/-/\//g'&lt;/P&gt;&lt;P&gt;produces the format "2016/07/06"&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jul 2016 22:02:57 GMT</pubDate>
    <dc:creator>dreid</dc:creator>
    <dc:date>2016-07-11T22:02:57Z</dc:date>
    <item>
      <title>CAN NIFI TRANSFORM A COMPLEX TIMESTAMP ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CAN-NIFI-TRANSFORM-A-COMPLEX-TIMESTAMP/m-p/122332#M85088</link>
      <description>&lt;P&gt;Hi everyone, &lt;/P&gt;&lt;P&gt;I'm trying to change this kind of timestamp:
&lt;STRONG&gt;"2016-07-06T15:04:33.332+00:00" &lt;/STRONG&gt;to this &lt;STRONG&gt;"2016/07/06" &lt;/STRONG&gt;with apache Nifi, &lt;/P&gt;&lt;P&gt;i have tried 
many things but failed miserably. &lt;/P&gt;&lt;P&gt;This is my configuration of the ReplaceText processor &lt;/P&gt;&lt;P&gt;Search Value   = ${dbbf.timestamp_da} &lt;/P&gt;&lt;P&gt;
Replacement Value  = ${bddf.timestamp_da:toDate("yyyy-MM-dd'T'HH:mm:ss.SSSZ"):format('yyyy/MM/dd')} &lt;/P&gt;&lt;P&gt;Character Set = UTF-8
Maximum &lt;/P&gt;&lt;P&gt;Buffer Size = 1 MB &lt;/P&gt;&lt;P&gt;
Replacement Strategy = Literal &lt;/P&gt;&lt;P&gt;Replace 
Evaluation Mode = Entire text &lt;/P&gt;&lt;P&gt;If Anyone can help i would really appreciate, Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 17:04:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CAN-NIFI-TRANSFORM-A-COMPLEX-TIMESTAMP/m-p/122332#M85088</guid>
      <dc:creator>raobelina_toky_</dc:creator>
      <dc:date>2016-07-11T17:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: CAN NIFI TRANSFORM A COMPLEX TIMESTAMP ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CAN-NIFI-TRANSFORM-A-COMPLEX-TIMESTAMP/m-p/122333#M85089</link>
      <description>&lt;P&gt;One idea is to try an executeprocess and pass the raw date into a shell command like this:&lt;/P&gt;&lt;P&gt;echo "2016-07-06T15:04:33.332+00:00" | awk -F"T" '{print $1}' | sed 's/-/\//g'&lt;/P&gt;&lt;P&gt;produces the format "2016/07/06"&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 22:02:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CAN-NIFI-TRANSFORM-A-COMPLEX-TIMESTAMP/m-p/122333#M85089</guid>
      <dc:creator>dreid</dc:creator>
      <dc:date>2016-07-11T22:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: CAN NIFI TRANSFORM A COMPLEX TIMESTAMP ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CAN-NIFI-TRANSFORM-A-COMPLEX-TIMESTAMP/m-p/122334#M85090</link>
      <description>&lt;P&gt;I appreciate the help and thank you for that. I have found the format of the timestamp which is "yyyy-MM-dd'T'HH:mm:ss.SSSXXX"  it was a lot easier after that.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2016 14:41:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CAN-NIFI-TRANSFORM-A-COMPLEX-TIMESTAMP/m-p/122334#M85090</guid>
      <dc:creator>raobelina_toky_</dc:creator>
      <dc:date>2016-07-25T14:41:24Z</dc:date>
    </item>
  </channel>
</rss>

