Implementation for issue #4: Constraints to limit date selection
Testcase for issue #4