Introduce a date/time class you use everywhere in your app that needs “now” that normally returns the current time.
For testing, you can explicitly set the return value (because it’s static or injected) to a particular value to freeze or change time during testing.