Subscribe ( )

iPhone Programming Tutorials

 

Forum

You must be logged in to post Login Register

Search 

Converting given date into day

User Post

10:33 am
October 24, 2008


sunil

Noob

India (Bangalore)

posts 2

1

Hi Guys,

Is there any api to convert a given date i.e. 2008-10-24 into Day i.e.Friday?
I know how to do this thing in C but I want to do in Obj-C on iPhone.

Thanks in advanced,
Sunil.

1:12 pm
October 24, 2008


bobcubsfan

iCoder

Los Angeles

posts 48

2

Does this help?

// Get the weekday component of the current date
NSDateComponents *weekdayComponents = [gregorian components:NSWeekdayCalendarUnit fromDate:today];


About the iCodeBlog forum

Currently Online:

5 Guests

Maximum Online: 19

Forums:

Groups: 2

Forums: 6

Topics: 156

Posts: 503

Members:

There are 268 members

There are 1 guests


Brandon has made 81 posts

Top Posters:

bobcubsfan - 48

crazyiez - 30

Uhu - 17

VertigoSol - 17

Nick - 15

Administrator: Brandon | Moderators: VertigoSol


© - Version 3.1.4 (Build 357)  

Share and Enjoy: