Phil Hunt said:
if you tell someone you are between 25 and 30, what are all the possible
birthday (mm/dd/yyy) you could be born on
Are 25 and 30 inclusive? If so, then there are 6 years involved. 365 (days
in a year) * 6 (number of years) = 2190 possible dates (of course, that
doesn't take leap years into account). I take it you don't want the number
though. You want the actual dates. That's more complicated. Are you going
to start with Jan 1st ~6 years ago? Are you going to start from whatever
date is exactly 6 years earlier than the current date? Are you going to go
until Dec 31 of the current year? Are you going to go only up to the
current date (IOW, disallow future birthdays for the current year)?
You need to elaborate on exactly what you need and possibly even the
purpose. I can't imagine any reason for needing to calculate EVERY date
within a given range. More curiosity than anything, but what on earth are
you planning to do with all of these dates once you've determined them?
Mike