I need to add a date component to my PickerView. Any ideas on how to get the date component? One way is to manually maintain all the date related info, take current date add and subtract to get the reqd dates, but this is very tedious, any other methods?

EDIT:I have not yet got about to writing the code, i need some ideas on how to go about getting the values for the date component(not UI). One solution I have is to take the current date and then use the ‘dateByAddingTimeInterval’ to maintain the the last 50 and next 50 days, but his approach is very crude. Is there a better way to do this?
I went ahead and used the same approach that i had mentioned in the question(given below). Even though its crude, it gets the work done. I have not tested this approach for large values of date in the third component. As of now i just have (30+30) values including the current date and its pretty stable and quick.
“One solution I have is to take the current date and then use the ‘dateByAddingTimeInterval‘ to maintain the the last 50 and next 50 days, but his approach is very crude.”