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

What is NSDate?

What is it and how and when would I use it. Where would it be important to use.

2 Answers

NSDate is one of many objects Objective-C added to C to make Object-Oriented Programming more viable with C. NS actually stands for next step.

It's an object you can instantiate instances from ( NSDate *newDate ) towards dealing with dates in an object-oriented way. That is to have very formal ways of dealing with date-like things (methods) and extending the functionality of such class easier that's reproducible, testable, and predictable.

Thanks :) I got it now