checks that  submitDate is an instance of Date