added check for valid-date , rel #355