I am trying to get an NSDate
from a string. The problem I am having is that the date I need is within a text.
Example: “Expieres : 26 May 2015 140 days left”.
I would like “26 May 2015” out of that and convert it into an NSDate
. Would I use Regular expression, then convert the string to NSDate
. If so, what would the regular expression look like.
Any help would be appreciated, thanks in advance.