views:

36

answers:

1

Hello,

is there a way to convert strtotime-like Strings (e.g.: '-3 days' with a given date) with NSDate?

+1  A: 

See NSDate's +dateWithNaturalLanguageString:. I'm not sure how much "natural language" is supported (such as the "-3 days" example you give), but it's your best bet.

Joshua Nozzi
Unfortunately this does not help. Looks like I need to implement correct datetime calculations on my own. Thanks anyway =)
unset