In the previous solution I have obtained a column "from" in the date format - 20190101. I need to add the column "to" based on the column "from". Basically the range is like this:
from 20190101 to 20190114
from 20190115 to 20190131
from 20190201 to 20190215
from 20190215 to 20190228
etc
How can I automatize this?
How to treat data as dates and operate on them. Eg., I have a date 20181231, I want to add a day 20181231 + 1 = 20190101
from?