I have a requirement in deriving a value of date and calculate the End Of Month difference. From source, i have a string column "a" of value YYYYMMDD. But, in target the column has to map based on below condition:
EOM(to_date(a, "DD.MM.YYYY")) >= EOM(current_date) #Output dateType is date type
I'm able to create the current_date value by importing datetime in python. But unable to convert the first part of code. Could you able to help in following code on how to acheive.