CorLib  

DateTimeFormatInfo

DateTimeFormatInfo overview

Implements:

ICloneable 
IFormatProvider 
IObject 

Public:

Properties:
AbbreviatedDayNames (get) Returns an array of abbreviated weekday names.  
AbbreviatedDayNames (let) Sets the weekday names to be used by this FormatProvider.  
AbbreviatedMonthNames (get) Returns an array of names for all the months.  
AbbreviatedMonthNames (let) Sets the abbreviated month names to be used by the formatter.  
AMDesignator (get) Returns the string that is displayed for times from 12:00:00 AM to 11:59:59 AM.  
AMDesignator (let) Sets the string that is display for times from 12:00:00 AM to 11:59:59 AM.  
Calendar (get) Returns the Calendar associated with this DateTimeFormatInfo.  
Calendar (set) Sets the calendar associated with this DateTimeFormatInfo.  
CalendarWeekRule (get) Returns the definition of the first week of the calendar year.  
CalendarWeekRule (let) Sets the definition of the first week for the calendar year.  
DateSeparator (get) Returns the string that is displayed when separating the components of a date, such as year, month, day.  
DateSeparator (let) Sets the string that is display when separating the components of a date, such as year, month, day.  
DayNames (get) Returns the names of the weekdays.  
DayNames (let) Sets the names for the weekdays.  
FirstDayOfWeek (get) Returns the first day of the week.  
FirstDayOfWeek (let) Sets the first day of the week.  
FullDateTimePattern (get) Returns a formatting pattern that represents a full date and time associated with the F formatting command.  
FullDateTimePattern (let) Sets the formatting pattern used for a full date and time formatting, and is associated with the F formatting command.  
IsReadOnly (get) Returns if this formatter is ReadOnly.  
LongDatePattern (get) Returns a pattern for formatting just the date portion and is associated with the D formatting command.  
LongDatePattern (let) Sets a pattern used for formatting just the date portion and is associated with the D formatting command.  
LongTimePattern (get) Returns a pattern used in formatting the time portion and is associated with the T formatting command.  
LongTimePattern (let) Sets the pattern used to format the time part when using the T formatting command.  
MonthDayPattern (get) Returns the month/day pattern associated with either m or M formatting commands.  
MonthDayPattern (let) Sets the month/day formatting pattern associated with either m or M formatting commands.  
MonthNames (get) Returns the full names for the months of the year.  
MonthNames (let) Sets the full month names to be used by the formatter.  
PMDesignator (get) Returns the string diplayed for times between 12:00:00 PM and 12:00:00 AM.  
PMDesignator (let) Sets the string display for times between 12:00:00 PM and 12:00:00 AM.  
RFC1123Pattern (get) Returns the pattern as specified by RFC-1123 and associated with the r or R formatting commands.  
ShortDatePattern (get) Returns the pattern for short date formatting associated with the d formatting command.  
ShortDatePattern (let) Sets the pattern used in formatting dates with the d formatting command.  
ShortTimePattern (get) Returns the formatting pattern for a short time using the t formatting command.  
ShortTimePattern (let) Sets the formatting pattern for a short time using the t formatting command.  
SortableDateTimePattern (get) Returns a pattern that can be used in string sorting to produce an ascending sort with string based dates and times. This pattern is associated with the s formatting command.  
TimeSeparator (get) Returns the separator of time components, such as hours, minutes, seconds.  
TimeSeparator (let) Set the separator for time components.  
UniversalSortableDateTimePattern (get) Returns a string sortable pattern that is associated with the u or U formatting commands.  
YearMonthPattern (get) Returns the pattern representing a YearMonth combination. This is associated with the y or Y formatting commands.  
YearMonthPattern (let) Sets the pattern that represents a YearMonth combination. This is associated with the y or Y formatting commands.  
Methods:
Clone Returns a clone of this instance. If this instance is ReadOnly, the clone will also be ReadOnly.  
Equals Returns a boolean indicating if the value and this object instance are the same instance.  
GetAbbreviatedDayName Returns the abbreviated name for the specified day-of-the-week.  
GetAbbreviatedEraName Returns the name of the Era specified.  
GetAbbreviatedMonthName Retrieves the abbreviated name for a given month.  
GetAllDateTimePatterns Returns all of the patterns for a specified formatting command. Or if no command is specified, then all of the patterns are returned.  
GetDayName Returns the full name for the day of the week.  
GetEra Returns the numeric era value based on the name provided.  
GetEraName Returns the full name of the specified.  
GetFormat Returns a format provider for the specified format type.  
GetHashCode Returns a pseudo-unique number identifying this instance.  
GetMonthName Returns the full name of the specified month.  
ToString Returns a string representation of this object instance.  

See Also