MonobjcMonobjc Documented Class Library
DateWithString Method (aString)
NamespacesMonobjc.FoundationNSDateDateWithString(NSString)

Creates and returns an NSDate object with a date and time value specified by a given string in the international string representation format (YYYY-MM-DD HH:MM:SS ±HHMM).

Original signature is '+ (id)dateWithString:(NSString *)aString'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSDate DateWithString(
	NSString aString
)
Public Shared Function DateWithString ( _
	aString As NSString _
) As NSDate
public:
static NSDate^ DateWithString(
	NSString^ aString
)
Parameters
aString (NSString)
A string that specifies a date and time value in the international string representation format—YYYY-MM-DD HH:MM:SS ±HHMM, where ±HHMM is a time zone offset in hours and minutes from GMT (for example, “2001-03-24 10:45:32 +0600”).
Return Value
An NSDate object with a date and time value specified by aString.
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)