¡@

Home 

2014/10/15 ¤U¤È 10:11:09

iphone Programming Glossary: localdate

convert NSstring date to UTC date

http://stackoverflow.com/questions/13583253/convert-nsstring-date-to-utc-date

iphone objective c ios xcode share improve this question try this method.. NSString getUTCFormateDate NSString localDate NSDateFormatter dateFormatter NSDateFormatter alloc init dateFormatter setDateFormat @ dd MM yyyy NSDate dateFormatted dateFormatter.. NSDateFormatter alloc init dateFormatter setDateFormat @ dd MM yyyy NSDate dateFormatted dateFormatter dateFromString localDate NSTimeZone timeZone NSTimeZone timeZoneWithName @ UTC dateFormatter setTimeZone timeZone dateFormatter setDateFormat @ yyyy..

objective-c setting NSDate to current UTC

http://stackoverflow.com/questions/2615833/objective-c-setting-nsdate-to-current-utc

NSDate date You may want to create a category that does something like this NSString getUTCFormateDate NSDate localDate NSDateFormatter dateFormatter NSDateFormatter alloc init NSTimeZone timeZone NSTimeZone timeZoneWithName @ UTC dateFormatter..

get time and date by NSDate

http://stackoverflow.com/questions/5689179/get-time-and-date-by-nsdate

I want to see them separately. thanks iphone objective c date time nsdate share improve this question NSDate localDate NSDate date NSDateFormatter dateFormatter NSDateFormatter alloc init autorelease dateFormatter.dateFormat @ MM dd yy NSString.. alloc init autorelease dateFormatter.dateFormat @ MM dd yy NSString dateString dateFormatter stringFromDate localDate NSDateFormatter timeFormatter NSDateFormatter alloc init autorelease timeFormatter.dateFormat @ HH mm ss NSString dateString.. alloc init autorelease timeFormatter.dateFormat @ HH mm ss NSString dateString timeFormatter stringFromDate localDate There are many many different ways to represent the date and time so check NSDateFormatter for more info. share improve..