[NSDate +dateWithNaturalLanguageString] question
[NSDate +dateWithNaturalLanguageString] question
- Subject: [NSDate +dateWithNaturalLanguageString] question
- From: Jamie Phelps <email@hidden>
- Date: Sun, 13 Jul 2008 10:44:44 -0500
Hi, all. I searched the archives regarding this method and didn't find
anything applicable. Sorry if this has been covered.
Is there some list of acceptable strings for
+dateWithNaturalLanguageString:? I am trying to set my Core Data
entity's expirationDate attribute's default value to "four months from
today" but it just returns the current date each time. Here are the
strings I have tried:
"in four months"
"four months from now"
"four months from today"
I also tried the same strings in -awakeFromInsert to no avail.
This is on Leopard so perhaps it behaves differently than in Tiger? If
anyone has an idea or direction to where I could find a list of
acceptable strings, I'd greatly appreciate it.
Thanks!
JP
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden