5/16/2023
The Why
I was tasked with building an activity tracker for a client. One of the requirements was to disable certain controls unless it was between two specific dates.
The How
In the Display mode of a button set the code as follows. This will disable the button unless it is between the dates.

If(Today() >= Date(YYYY, MM, DD) && Today() <= Date(YYYY, MM, DD), DisplayMode.Edit, DisplayMode.Disabled)