Convert the user’s current time to a date (without time) in their timezone. Convert the EffectiveDate
and ExpirationDate
to local date only (also in user’s timezone). Then do a date-only comparison to check if the currentUserDate
falls between the EffectiveDate
and ExpirationDate
in the user's local date context.