Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 08-31-2010, 09:03 PM   #2 (permalink)
timle8n1
Use [code] tags please
 
Join Date: Jun 2009
Location: Jacksonville, FL
Posts: 410
timle8n1 is on a distinguished road
Default

This should help

Code:
NSCalendar *calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
NSDate *today = [NSDate date];
NSDateComponents *dateComps = [calendar components:(NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit)
		fromDate:today];
NSDate *todayAtMidnight = [calendar dateFromComponents:dateComps];
timle8n1 is offline   Reply With Quote
 

» Advertisements
» Online Users: 364
12 members and 352 guests
antonwilliams, breennorah, Domele, dre, HemiMG, heshiming, ipodphone, KaliJen00, linkmx, Matl43Owa, Renechris, sathiamoorthy
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,579
Threads: 94,082
Posts: 402,765
Top Poster: BrianSlick (7,990)
Welcome to our newest member, breennorah
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:30 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.