0
My Flow的属性'05 -05-2015'。我需要在NiFi中找到该日期的一周。如何查找日期值的一周?
For example:
if date is 05 then it is belongs to 1st week of the year.
我不应该使用脚本/程序的查找星期。
我需要找出仅使用NiFi表达式语言。
任何人都可以建议这样做吗?
My Flow的属性'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 Tue
格式参考:
http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html