MonobjcMonobjc Documented Class Library
DateWithNaturalLanguageString Method (string)
NamespacesMonobjc.FoundationNSDateDateWithNaturalLanguageString(NSString)

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

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

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSDate DateWithNaturalLanguageString(
	NSString string
)
Public Shared Function DateWithNaturalLanguageString ( _
	string As NSString _
) As NSDate
public:
static NSDate^ DateWithNaturalLanguageString(
	NSString^ string
)
Parameters
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.”
Return Value
A new NSDate object set to the current date and time specified by string.
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)