MonobjcMonobjc Documented Class Library
DateFormatFromTemplateOptionsLocale Method (template, opts, locale)
NamespacesMonobjc.FoundationNSDateFormatterDateFormatFromTemplateOptionsLocale(NSString, NSUInteger, NSLocale)

Returns a localized date format string representing the given date format components arranged appropriately for the specified locale.

Original signature is '+ (NSString *)dateFormatFromTemplate:(NSString *)template options:(NSUInteger)opts locale:(NSLocale *)locale'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSString DateFormatFromTemplateOptionsLocale(
	NSString template,
	NSUInteger opts,
	NSLocale locale
)
Public Shared Function DateFormatFromTemplateOptionsLocale ( _
	template As NSString, _
	opts As NSUInteger, _
	locale As NSLocale _
) As NSString
public:
static NSString^ DateFormatFromTemplateOptionsLocale(
	NSString^ template, 
	NSUInteger opts, 
	NSLocale^ locale
)
Parameters
template (NSString)
A string containing date format patterns (such as “MM” or “h”).
opts (NSUInteger)
No options are currently defined—pass 0.
locale (NSLocale)
The locale for which the template is required.
Return Value
A localized date format string representing the date format components given in template, arranged appropriately for the locale specified by locale. The returned string may not contain exactly those components given in template, but may—for example—have locale-specific adjustments applied.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

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