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

iOS Build a Blog Reader iPhone App Adapting Data for Display Formatting Dates with NSDateFormatter

Eric Hodgins
Eric Hodgins
29,207 Points

Formatting Dates with NSDateFormatter - null values

When I run the program I get null dates in some cases. For example it will say:

Learning, Every Day // Title Nick Pettit - (null) //Author - date

Is that normal? Or would you have to do some error handling?

Thanks!

2 Answers

Soojin Ro
Soojin Ro
13,331 Points

It is not normal because you are not getting what you want. It is not so much an "error", but rather a bug. You may consider fixing your code because there is something wrong with the result.

Eric Hodgins
Eric Hodgins
29,207 Points

thanks Soojin, you're 100% right. I managed to fix it.