2 Replies - 1592 Views - Last Post: 18 May 2011 - 09:56 PM

#1 JheeBz  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 08-October 09

Storing a date of birth

Posted 20 March 2011 - 02:02 AM

My homework for this week involves editing a "Person" class which has an age in it. All I have to do is edit the getter to get the date of birth and turn that into an age rather than having an age variable.

This is all well and good but I'm just trying to figure out how to go about doing so. Would I have to make an array or a date object or is there some built-in class in objective-C that can do this? I'm not asking you to implement the code for me, I just want to know what the best way to go about it is. I've tried googling but didn't find anything.

Cheers,
JheeBz

Is This A Good Question/Topic? 0
  • +

Replies To: Storing a date of birth

#2 janotte  Icon User is offline

  • code > sword
  • member icon

Reputation: 990
  • View blog
  • Posts: 5,141
  • Joined: 28-September 06

Re: Storing a date of birth

Posted 19 April 2011 - 04:50 AM

Not sure what exactly you are looking for but whatever you want should be here:
http://developer.app.../Reference.html
and, especially, here:
http://developer.app.../Reference.html
Was This Post Helpful? 0
  • +
  • -

#3 nwaioalb99  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 01-May 11

Re: Storing a date of birth

Posted 18 May 2011 - 09:56 PM

open below link and see the code it may be help you.
dreamincode.net/forums/topic/160394-problem-sorting-the-array-of-structure/ :bigsmile:
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1