- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Convert Integer type value to Date format "yyyy-MM-dd" in NiFi Flow File
- Labels:
-
Apache NiFi
Created 06-21-2020 08:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
How can i convert integer value like 20190202 into Date format like 2019-02-02 in the NiFi flowfile content?
Created on 06-23-2020 10:08 PM - edited 06-23-2020 10:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@AJ121 -
Please try this :
${datestring:toDate("yyyyMMdd","GMT"):format("yyyy-MM-dd")}
Please accept if it helped/solved your problem.
Created on 06-23-2020 10:08 PM - edited 06-23-2020 10:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@AJ121 -
Please try this :
${datestring:toDate("yyyyMMdd","GMT"):format("yyyy-MM-dd")}
Please accept if it helped/solved your problem.
