I have a date coming in the format 2022-05-26T13:50:44.000Z, 2018-10-05T18:14:00.000Z. I want the date to be picked after 2022 only from this column. But when I am using the below query it is not working at all.
to_date(TO_CHAR(TRUNC(Paaf.last_update_date),'MM-DD-YYYY'),'MM-DD-YYYY') >= TO_DATE('01-01-2022','MM-DD-YYYY')
How to compare the date so that it only the dates after 01-01-2022 are picked
If i do Paaf.last_update_date like '%2022%'
I am getting the output,
is there anyway I can do '%Current year%' for the like to work