I have a date in my application which has this format :
"MMM dd, yyyy hh:mm:ss a"
The user chooses a day from a picker and the date is always converted to this format. From this format how can i get the date after exactly 24 hours?
For example if the date is Mon 24 , 2012 17:44:33 i need the code to transform it to Tue 25 , 2012 17:44:33.
Use the following code to create a
NSDatefrom your string:Use the following code to add days to a
NSDate:Happy coding!