Adding datetime validation.
Merge.