MINOR fixed issue when date time is not following the right format.