My scenario is to check if the Month and year (in date value) is less than the current month and year (in current date value).
The condition I need to implement is this
if source-month&year < current-month&year Yes else No
Scenario 1:current date = 03/29/2024 (MM/dd/yyyy) and source incoming date = 03/01/2021 (MM/dd/yyyy). In this case it should give me Yes
Scenario 2: current date = 03/29/2024 (MM/dd/yyyy) and source incoming date = 03/01/2024 (MM/dd/yyyy). In this case it should give me No.
I tried using .month and .year but it always giving result as No