addYears($DateOfBirth, 18) <= '[%BeginOfCurrentDay%]'
Hi Rajat,
Take a look at the between functions: https://docs.mendix.com/refguide/between-date-function-calls
and maybe this question can be of good use:
https://forum.mendix.com/link/questions/1096
Good luck!