How to check one date is greater than 1st of the following month In Function in pega

I have a requirement like birthdate is greater than the first of the following month how check when condition In DT

LIKE MM/DD/YYYY

09/20/2022 > 10/1/2022 ,19/20/2022 >11/1/2022

How to build this using function, can anyone please help me

Thanks In Advance

@AVINASHL4108

try the below Expression in when condition.it compares with current date time

.DateOfBirth>getCurrentDateStamp()

@RohiniKumarU Tq But I need to check dynamicaly with two date properties

Hi @AVINASHL4108

Can you please try the below expression in the when step to compare the dates.

!(@DateTime.CompareDates(Param.BirthDate,Param.NextDate))

In Param.BirthDate pass the birthdate and in Param.NextDate pass another date which needs to be checked.

Thanks,
Seetharaman S

@AVINASHL4108

Use this

.DateOfBirth>.OtherPropertyName both property types should be date

@Seetharaman Hi How to check One date is greater than plus minus 63 days of another date

Can help On this

@AVINASHL4108

@Seetharaman tq