For this use case you can define a flag as Identity attribute which should be true from start date to end date and false otherwise. So now when you define your role include this identity attribute as one of the role criteria and assign the role only when this flag is true.