Move InvalidDate class into its own file