Icon

20230103 Pikairos Replace First Date of the month with First Day of same month

20221230 Pikairos Replace First Date of the month with First Day of same month

This workflow brings a possible answer to question asked in post #58039 on the KNIME forum:

I want to convert the latest date of every month into the first date of that particular month.



Your DatesReorder Day & Yearin DateExtractYear - Month - Day - Hour - MinuteThis String Manipulationmakes sure thatMonth, Day,Hour & Minuteare made of 2 charactersLag Monthto Comparetwo Month RowsLaterIf Lagged Monthis different thatCurrent Thenset Day to 01CombineNew Day - Month - YearKeep onlyDesired ColumnsTable Creator String Manipulation String to Date&Time Extract Date&TimeFields String Manipulation(Multi Column) Lag Column Rule Engine String Manipulation Column Filter Your DatesReorder Day & Yearin DateExtractYear - Month - Day - Hour - Minute This String Manipulationmakes sure thatMonth, Day,Hour & Minuteare made of 2 charactersLag Monthto Comparetwo Month RowsLaterIf Lagged Monthis different thatCurrent Thenset Day to 01CombineNew Day - Month - YearKeep onlyDesired ColumnsTable Creator String Manipulation String to Date&Time Extract Date&TimeFields String Manipulation(Multi Column) Lag Column Rule Engine String Manipulation Column Filter

Nodes

Extensions

Links