If you have any issue while iPhone Application Development you can contact me.
Friday, September 30, 2011
Convert NSString to NSDate
NSString
*dateString =
@"03-Sep-11"
;
NSDateFormatter
*dateFormatter = [[[
NSDateFormatter
alloc
]
init
]
autorelease
];
dateFormatter.dateFormat =
@"dd-MMM-yy"
;
NSDate
*date = [dateFormatter
dateFromString
:dateString];
No comments:
Post a Comment
Kamleshwar
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Kamleshwar