only one function to check the date -> easier to maintain