uidatapicker date mode on iphone sdk

i am using uidatapicker date mode

and i have a button and i want to get the day of the year when i click on that button

for example if the user chooses 23/3/2010 and then he clicks the button it will tell what day it is of the year - so it will say 82

Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

pgnatyukConnect With a Mentor Commented:
there is date method, simply call it (send the message).
 NSDate* selected = [datePicker date];

Here is a full tutorial:
How to Use UIDatePicker From UIKit in iPhone Programming

All Courses

From novice to tech pro — start learning today.