add the ability to validate dates

okay, so extract method. I can do that. :smile: