Generates an array of linearly spaced dates.