Apache nifi 如何为日期值查找一年中的星期?
我的流具有属性“05-05-2015”。我需要在NiFi中查找日期的星期Apache nifi 如何为日期值查找一年中的星期?,apache-nifi,Apache Nifi,我的流具有属性“05-05-2015”。我需要在NiFi中查找日期的星期 For example: if date is 05 then it is belongs to 1st week of the year. 我不应该在“发现”周使用脚本/程序 我需要找出只使用NiFi表达式语言 有人能提出这样做的建议吗?假设eee是您的属性 然后表达 ${eee:toDate('MM-dd-yyyy'):format('u E')} 输出: 2周二 格式参考: 假设eee是您的属性 然后表达 ${
For example:
if date is 05 then it is belongs to 1st week of the year.
我不应该在“发现”周使用脚本/程序
我需要找出只使用NiFi表达式语言
有人能提出这样做的建议吗?假设
eee
是您的属性
然后表达
${eee:toDate('MM-dd-yyyy'):format('u E')}
输出:
2周二
格式参考:
假设
eee
是您的属性
然后表达
${eee:toDate('MM-dd-yyyy'):format('u E')}
输出:
2周二
格式参考: