MonobjcMonobjc Documented Class Library
NSDateFormatter Constructor (format, flag)
NamespacesMonobjc.FoundationNSDateFormatterNSDateFormatter(NSString, Boolean)

Initializes and returns an NSDateFormatter instance that uses the Mac OS X v10.0 formatting behavior and the given date format string in its conversions.

Original signature is '- (id)initWithDateFormat:(NSString *)format allowNaturalLanguage:(BOOL)flag'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public NSDateFormatter(
	NSString format,
	bool flag
)
Public Sub New ( _
	format As NSString, _
	flag As Boolean _
)
public:
NSDateFormatter(
	NSString^ format, 
	bool flag
)
Parameters
format (NSString)
The format for the receiver. See Date Format String Syntax (Mac OS X Versions 10.0 to 10.3) for a list of conversion specifiers permitted in date format strings.
flag (Boolean)
A flag that specifies whether the receiver should process dates entered as expressions in the vernacular (for example, "tomorrow")—YES means that it should.
Return Value
An initialized NSDateFormatter instance that uses format in its conversions and that uses the Mac OS X v10.0 formatting behavior.
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)