MonobjcMonobjc Documented Class Library
DateWithNaturalLanguageStringLocale Method (string, localeDictionary)
NamespacesMonobjc.FoundationNSDateDateWithNaturalLanguageStringLocale(NSString, Id)

Creates and returns an NSDate object set to the date and time specified by a given string.

Original signature is '+ (id)dateWithNaturalLanguageString:(NSString *)string locale:(id)localeDictionary'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSDate DateWithNaturalLanguageStringLocale(
	NSString string,
	Id localeDictionary
Public Shared Function DateWithNaturalLanguageStringLocale ( _
	string As NSString, _
	localeDictionary As Id _
) As NSDate
static NSDate^ DateWithNaturalLanguageStringLocale(
	NSString^ string, 
	Id^ localeDictionary
string (NSString)
A string that contains a colloquial specification of a date, such as “last Tuesday at dinner,” “3pm December 31, 2001,” “12/31/01,” or “31/12/01.”
localeDictionary (Id)
An NSDictionary object containing locale data. To use the user's preferences, you can use [[NSUserDefaults standardUserDefaults] dictionaryRepresentation].
Return Value
A new NSDate object set to the date and time specified by string as interpreted according to localeDictionary.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)