Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a problem when I would like to get week of year by the following expression:
TalendDate.formatDate("w", date)
For example, If date = 2019-01-06 it will return 2 which I would like it to return 1.
It's not working for the other day
@fararen ,what is other day? can you give example.
For 2019-01-07 it will return 1 which should return 2
@fararen ,check the below one is working as expected.
Sting date type
TalendDate.getPartOfDate("DAY_OF_WEEK",TalendDate.parseDate("yyyy-MM-dd", "2019-01-06"))
Date data type
TalendDate.getPartOfDate("DAY_OF_WEEK",row3.date)
I would like to get week of year not day of week
@fararen ,did you verify the below link,if not please check.