Check date data  to be a valid date 

@hpoom, @kevinhodges  please can you code review this change
Thanks