And the dashes? Just thought I'd point that out, so that code exactly is not used. But anyways, that is not a good way. What if you have 30 dates in the textbox or something? And if they're in a different format? Any change would require completely new (and long) code.