Version

DateInfoProvider Class Members

The following tables list the members exposed by DateInfoProvider.

Public Constructors
 NameDescription
Public ConstructorDateInfoProvider ConstructorOverloaded.   
Public Properties
 NameDescription
Public PropertyAMDesignatorReturns the designator string for morning hours (read-only)  
Public PropertyAMDesignatorLowercaseReturns and caches the AMDesignator converted to lowercase (read-only)  
Public PropertyCalendarReturns the calendar (read-only)  
Public Propertystatic (Shared in Visual Basic)CurrentProviderReturns the provider for the System.Globalization.CultureInfo.CurrentCulture (read-only)  
Public PropertyDateSeparatorReturns the separator between year, month and day (read-only)  
Public PropertyDateTimeFormatInfoReturns the object that contains the format info for dates and times (read-only)  
Public PropertyDisplayTimeIn24HourFormatReturns true if time should be displayed in 24 hour format or false to dispay in 12 hour format with AM and PM designators  
Public PropertyHourPatternReturns the pattern to use to display just hours  
Public PropertyMaxSupportedDateTimeReturns the latest date time that is supported (read-only)  
Public PropertyMinSupportedDateTimeReturns the earliest date time that is supported (read-only)  
Public PropertyPMDesignatorReturns the designator string for afternoon hours (read-only)  
Public PropertyPMDesignatorLowercaseReturns and caches the PMDesignator converted to lowercase (read-only)  
Public PropertyTimeSeparatorReturns the separator between hours, minutes and seconds (read-only)  
Public Methods
 NameDescription
Public MethodClearCachedValuesClears any values that have been cached so they can be re-created when needed  
Public MethodFormatDateReturns a formatted string for the supplied date.  
Public MethodFormatDateRangeOverloaded. Returns a formatted string for a range of date times.  
Public MethodFormatDayOfWeekReturns a formatted string for the specified day of the week.  
See Also