Fixed a validation check on date utils.
PEP-8