nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Payne <marka...@hotmail.com>
Subject Re: Convert tweet time to different date/time format
Date Wed, 29 Jun 2016 19:45:02 GMT
Igor,

You can use the toDate() and format() functions:

${tweetTimestamp:toDate('EEE MMM dd HH:mm:ss Z yyyy'):format('yyyy-MM-dd HH:mm:ss')}

Thanks
-Mark



> On Jun 29, 2016, at 3:37 PM, Igor Kravzov <igork.inexso@gmail.com> wrote:
> 
> How can I convert tweet date/time stamp in format "Wed Jun 29 19:04:20 +0000 2016" to
this format "2016-06-29 15:04:41" using date functions?
> 
> Thanks in advance.


Mime
View raw message