I have a string in the format Tue May 22 2012 11.00 pm . Now i need to convert this into NSDate and then get the current Date and time form NSDate *currentDate = [NSDate today];.
Then find the time difference in Seconds between the 2.
I am unable to solve this, help me please
Ok for this part you need an `NSDateFormatter“
This was the first part.
Now for the
This will calculate the seconds between the
dateFromStringand now.For mor information about working with date and time in cocoa I highly recomment Ole Begemenans “Working with Date and Time in Cocoa Series”