i have one array something like below
Birthdates(
"03/12/2013",
"03/12/2013",
"08/13/1990",
"12/09/1989",
"02/06",
"09/08",
"03/02/1990",
"08/22/1989",
"03/02",
"05/13",
"10/16",
"07/08",
"08/31/1990",
"04/14/1992",
"12/15/1905",
"08/14/1989",
"10/07/1987",
"07/25",
"07/17/1989",
"03/24/1987",
"07/28/1988",
"01/21/1990",
"10/13"
)
all are NSString
now i want to make another array from this in which all years should be 2013 if that date is coming in current year and if date is already passed then change year to 2014?
in above sentence we are not considering year we consider only day and month and then see in current year is it already passed or not?
example if date is "12/15/1905" then convert it in another array like "12/15/2013" but if date is like "01/01/1990" then convert it in another array like "01/01/2014" bcoz it has already passed current date plz help thank you in advance :)
i will prefer to do something in which code apply for not only 2013 and 2014 it should apply for coming future too.