Skip to main content
AJ121
Bronze ⭐️⭐️⭐️
June 21, 2020
Solved

Convert Integer type value to Date format "yyyy-MM-dd" in NiFi Flow File

Hi,

How can i convert integer value like 20190202 into Date format like 2019-02-02 in the NiFi flowfile content?

hegdemahendra
Gold ⭐️⭐️
June 24, 2020

@AJ121 -

Please try this :
${datestring:toDate("yyyyMMdd","GMT"):format("yyyy-MM-dd")}

Please accept if it helped/solved your problem.

1 reply

hegdemahendra
Gold ⭐️⭐️
June 24, 2020

@AJ121 -

Please try this :
${datestring:toDate("yyyyMMdd","GMT"):format("yyyy-MM-dd")}

Please accept if it helped/solved your problem.

Translate