Added checked for DateTime objects in date/time/datetime validation rules. Fixes #3056