Using date module to validate supplied date and parsing validated input.