How to add some time to an NSDate
Imagine you had an NSDate object and want to add days several to it. We can use NSDate method dateByAddingComponents for this, which takes – as you may have guessed – NSDateComponents as parameters. In this example, let’s assume we want to know what date it is 5 days from today: int daysToAdd = 5; […]