use clearer method for checking date