Improved error messaging. Added error handling around invalid dates.