79565879

Date: 2025-04-10 06:35:58
Score: 1
Natty:
Report link

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.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Zahab Abbas