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

thanks
mgtm3Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
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
http://howtomakeiphoneapps.com/2009/10/how-to-use-uidatepicker-from-uikit-in-iphone-programming/
 

 
0
All Courses

From novice to tech pro — start learning today.