I am creating a custom type calendar and I am trying to see if it is possible to store dates in an array without statically assigning each one. For example the 1st date in the array would be the day it was first created and it would save the next week lets say into the relevant indexes in the array.

```
NSMutableArray *thisWeek = [today, tomorrow, sunday(Feb 24), monday (Feb 25), etc];

```

What would be the best way to go about storing the future dates?
['https://Stackoverflow.com/questions/15029537', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1220097/']
```
NSMutableArray *days;
days = [[NSMutableArray alloc] init]; 

NSDate *todayDate = [NSDate Date];
[days addObject:todayDate]; 

for (int i = 1; i <= 6; i++) 
{
    NSDate *newDate = [[NSDate date] dateByAddingTimeInterval:60*60*24*i];

    [days addObject:newDate];

} 

```

In this way, you can add days in array.
Take a look at `dateByAddingTimeInterval:` in the `NSDate` docs ([link](https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSDate_Class/Reference/Reference.html)). It lets you add a given amount of seconds to a date.