slight revision to bounds-checking logic on simpledate to avoid overflow