DateOptions Members
Include Protected Members
Include Inherited Members
Provides access to properties and methods that are used to view and set date options.
The DateOptions type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DateOptions(String, SPCalendarType, String, String, String, String, String) | Initializes a new instance of the DateOptions class, based upon the locale identifier, calendar type, work days in a week, first day of the week displayed in the calendar, adjustment for Ramadan and regional differences, the time zone offset from UTC, and the currently selected calendar date. | |
DateOptions(String, SPCalendarType, String, String, String, String, String, String) | Initializes a new instance of the DateOptions class, based upon the locale identifier, calendar type, work days in a week, first day of the week displayed in the calendar, adjustment for Ramadan and regional differences, the time zone offset from UTC, the last year of a 100-year range, and the currently selected calendar date. | |
DateOptions(String, SPCalendarType, String, String, String, String, String, Boolean, String) | Initializes a new instance of the DateOptions class, based upon the locale identifier, calendar type, work days in a week, first day of the week displayed in the calendar, adjustment for Ramadan and regional differences, the time zone offset from UTC, the last year of a 100-year range, whether the ISO8601 date format will be used, and the currently selected calendar date. |
Top
Properties
Name | Description | |
---|---|---|
AMDesignator | Gets the string designator for hours that are "ante meridiem" (before noon). | |
Calendar | Gets the current calendar. | |
CalendarType | Gets the type of the current calendar. | |
DateSeparator | Gets the character or text that separates the components of date; that is, the month, day, and year. | |
DateTimeFormat | Gets the current DateTimeFormat derived from the regional settings and the calendar. | |
DayNames | Gets the culture-specific full names of the days of the week. | |
FirstDayOfWeek | Gets a value that represents the first day of the week displayed in the calendar. | |
HijriAdjustment | Gets the number of days to add or subtract from the calendar to accommodate the variances in the start and the end of Ramadan and to accommodate the date difference between countries/regions. | |
Lang | Gets the language used for date options. | |
LongDatePattern | Gets the format pattern for a long date value, which is associated with the “D” standard format character. | |
MonthDayPattern | Gets the format pattern for a month and day value. The pattern is associated with the "m" and "M" format characters. | |
PMDesignator | Gets the string designator for hours that are "post meridiem" (after noon). | |
SelectedDate | Gets the currently selected date. | |
ShortDatePattern | Gets the format pattern for a short date value, which is associated with the "d" format character. | |
TimePattern12Hour | Gets the current 12-hour time format pattern. | |
TimePattern24Hour | Gets the current 24-hour time format pattern. | |
TimeSeparator | Gets the character or string that separates the components of time; that is, the hour, minutes, and seconds. | |
Today | Gets the current date. |
Top
Methods
Name | Description | |
---|---|---|
AddDays | Returns a date that is the specified number of days away from the specified date. | |
AddMonths | Returns a date that is the specified number of months away from the specified date. | |
AddYears | Returns a date that is the specified number of years away from the specified date. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
fixYear | Returns a SimpleDate object that represents a date value that is corrected to conform to the requirements of the current international calendar. | |
Get12Hours | Returns the hour values used for a 12-hour clock. | |
GetDateString | Returns a string representation of the specified date and uses the specified format. | |
GetDayChar(Int32) | Returns a string representation of the specified calendar day. | |
GetDayChar(Int32, SPCalendarType) | Returns a string representation of the specified calendar day and uses the specified calendar type. | |
GetDaysAbbreviation | Returns abbreviations for the current days of the week. | |
GetDaysSuperShortAbbreviation | Returns short abbreviations for the current days of the week. | |
GetDowLongDateString | Returns a string representation of the day of week of the specified date. | |
GetHashCode | (Inherited from Object.) | |
GetHoursString | Returns the hour values used to display time values in the specified format. | |
GetLeapMonthNames | Gets the full names of the months for a leap year. | |
GetLeapMonthNamesAbbreviation | Gets the abbreviation names of the months for a leap year. | |
GetLongTimePattern | Gets the format pattern for a long time value. | |
GetMonthDayDateString | Returns a string representation of the month and day of the specified date. | |
GetMonthNames() | Gets the full names of the months for non-leap year. | |
GetMonthNames(SimpleDate) | Returns the month names used to display the specified date. | |
GetMonthNamesAbbreviation() | Returns an abbreviated version of the month names used to display the date. | |
GetMonthNamesAbbreviation(SimpleDate) | Returns an abbreviated version of the month names used to display the specified date. | |
GetMonthYearString | Returns a string representation of the month and year of the specified date. | |
GetShortDateString | Returns a string representation of the specified date and uses the short date format. | |
GetShortDayAbbreviation | Returns shortened abbreviations for the current days of the week. | |
GetShortTimePattern | Gets the format pattern for a short time value. | |
GetTimeString | Returns a string representation of the elapsed time between two specified DateTime values. | |
GetTimeStringFromPattern | Returns a string representation of a specified DateTime value. | |
GetType | (Inherited from Object.) | |
GetYearString | Returns a string representation of the year of the specified date. | |
IsWorkDay | Returns a Boolean value that indicates whether the specified day is a work day. | |
MemberwiseClone | (Inherited from Object.) | |
ParseDate | Returns a SimpleDate object as an output parameter that represents the specified date string in the specified format. | |
ParseMonthDayDate | Returns a SimpleDate object as an output parameter that represents the specified date string and uses the current MonthDayPattern format. | |
ParseShortDate | Returns a SimpleDate object as an output parameter that represents the specified date string and uses the current ShortDatePattern format. | |
ParseTime | Returns a DateTime object as an output parameter that represents the specified time string in the specified format. | |
ToString | (Inherited from Object.) |
Top