MonobjcMonobjc Documented Class Library
LocalizedStringFromDateDateStyleTimeStyle Method (date, dateStyle, timeStyle)
NamespacesMonobjc.FoundationNSDateFormatterLocalizedStringFromDateDateStyleTimeStyle(NSDate, NSDateFormatterStyle, NSDateFormatterStyle)

Returns string representation of a given date formatted for the current locale using the specified date and time styles.

Original signature is '+ (NSString *)localizedStringFromDate:(NSDate *)date dateStyle:(NSDateFormatterStyle)dateStyle timeStyle:(NSDateFormatterStyle)timeStyle'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSString LocalizedStringFromDateDateStyleTimeStyle(
	NSDate date,
	NSDateFormatterStyle dateStyle,
	NSDateFormatterStyle timeStyle
)
Public Shared Function LocalizedStringFromDateDateStyleTimeStyle ( _
	date As NSDate, _
	dateStyle As NSDateFormatterStyle, _
	timeStyle As NSDateFormatterStyle _
) As NSString
public:
static NSString^ LocalizedStringFromDateDateStyleTimeStyle(
	NSDate^ date, 
	NSDateFormatterStyle dateStyle, 
	NSDateFormatterStyle timeStyle
)
Parameters
date (NSDate)
A date.
dateStyle (NSDateFormatterStyle)
A format style for the date. For possible values, see NSDateFormatterStyle.
timeStyle (NSDateFormatterStyle)
A format style for the time. For possible values, see NSDateFormatterStyle.
Return Value
A localized string representation of date using the specified date and time styles
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

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