Keygen now checks for different types of dates