Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Paul Panayotou
Paul Panayotou
5,001 Points

Need help with futureDate to dateString, NSDateFormater Code Challenge 4/4

Hi, I cannot see what's wrong with this code. All lines up to the last one passed the first 3 code challenges... Any help would be appreciated especially since the badge is so close! : )

NSDate *today = [NSDate new];

NSDate *futureDate = [NSDate dateWithTimeIntervalSinceNow: secondsPerDay*10];

[dateFormatter setDateFormat:@"MM/dd/yyyy"];

NSString *dateString = [dateFormatter stringFromDate:futureDate];

2 Answers

Paul Panayotou
Paul Panayotou
5,001 Points

Thanks Amit. It worked for me too now shrugs all I did was copy and paste it from the code challenge into the forum.