Метод | Описание | |
---|---|---|
GetDaysInPeriod ( System.DateTime startDate, System.DateTime endDate ) : int |
Returns the number of days in a period
|
|
GetEndOfDay ( System.DateTime date ) : System.DateTime | ||
GetEndOfMonth ( System.DateTime date ) : System.DateTime | ||
GetEndOfMonth ( int monthOffsetFromCurrentMonth ) : System.DateTime | ||
GetEndOfYear ( System.DateTime now ) : System.DateTime | ||
GetNextQuarter ( System.DateTime date ) : int | ||
GetNumberOfDaysInMonth ( System.DateTime date ) : int | ||
GetNumberOfDaysInMonthExcludingWeekday ( System.DateTime date, DayOfWeek day ) : int | ||
GetNumberOfDaysPastExcludingWeekday ( System.DateTime date, DayOfWeek day ) : int | ||
GetNumberOfWeekdaysInDaysPast ( System.DateTime date, DayOfWeek day ) : int |
Gets the number of the given weekday in the days past in the month of the given date
|
|
GetNumberOfWeekdaysInMonth ( System.DateTime date, DayOfWeek day ) : int |
Gets the number of the given weekday in the month of the given date
|
|
GetPreviousQuarter ( System.DateTime date ) : int | ||
GetQuarter ( System.DateTime date ) : int | ||
GetQuarterEndDate ( System.DateTime date ) : System.DateTime | ||
GetQuarterEndDate ( int year, int quarter ) : System.DateTime | ||
GetQuarterStartDate ( System.DateTime date ) : System.DateTime | ||
GetQuarterStartDate ( int year, int quarter ) : System.DateTime | ||
GetStartAndEndOfWeek ( int year, int week, System.DateTime &startOfWeek, System.DateTime &endOfWeek, CalendarWeekRule cwr, DayOfWeek firstDayOfWeek ) : void | ||
GetStartOfDay ( System.DateTime date ) : System.DateTime | ||
GetStartOfMonth ( System.DateTime date ) : System.DateTime | ||
GetStartOfMonth ( int monthOffsetFromCurrentMonth ) : System.DateTime | ||
GetStartOfYear ( System.DateTime now ) : System.DateTime | ||
IsInSameMonth ( System.DateTime startDate, System.DateTime endDate ) : bool | ||
IsInSameYear ( System.DateTime startDate, System.DateTime endDate ) : bool | ||
OccursWithinDaysAfter ( System.DateTime date, int days, System.DateTime fromDate ) : bool |
Returns true if date occurs within days after or on fromDate
|
|
OccursWithinDaysBefore ( System.DateTime date, int days, System.DateTime fromDate ) : bool |
Returns true if date occurs within days before or on fromDate
|
public static GetDaysInPeriod ( System.DateTime startDate, System.DateTime endDate ) : int | ||
startDate | System.DateTime | |
endDate | System.DateTime | |
Результат | int |
public static GetEndOfDay ( System.DateTime date ) : System.DateTime | ||
date | System.DateTime | |
Результат | System.DateTime |
public static GetEndOfMonth ( System.DateTime date ) : System.DateTime | ||
date | System.DateTime | |
Результат | System.DateTime |
public static GetEndOfMonth ( int monthOffsetFromCurrentMonth ) : System.DateTime | ||
monthOffsetFromCurrentMonth | int | |
Результат | System.DateTime |
public static GetEndOfYear ( System.DateTime now ) : System.DateTime | ||
now | System.DateTime | |
Результат | System.DateTime |
public static GetNextQuarter ( System.DateTime date ) : int | ||
date | System.DateTime | |
Результат | int |
public static GetNumberOfDaysInMonth ( System.DateTime date ) : int | ||
date | System.DateTime | |
Результат | int |
public static GetNumberOfDaysInMonthExcludingWeekday ( System.DateTime date, DayOfWeek day ) : int | ||
date | System.DateTime | |
day | DayOfWeek | |
Результат | int |
public static GetNumberOfDaysPastExcludingWeekday ( System.DateTime date, DayOfWeek day ) : int | ||
date | System.DateTime | |
day | DayOfWeek | |
Результат | int |
public static GetNumberOfWeekdaysInDaysPast ( System.DateTime date, DayOfWeek day ) : int | ||
date | System.DateTime | |
day | DayOfWeek | |
Результат | int |
public static GetNumberOfWeekdaysInMonth ( System.DateTime date, DayOfWeek day ) : int | ||
date | System.DateTime | |
day | DayOfWeek | |
Результат | int |
public static GetPreviousQuarter ( System.DateTime date ) : int | ||
date | System.DateTime | |
Результат | int |
public static GetQuarter ( System.DateTime date ) : int | ||
date | System.DateTime | |
Результат | int |
public static GetQuarterEndDate ( System.DateTime date ) : System.DateTime | ||
date | System.DateTime | |
Результат | System.DateTime |
public static GetQuarterEndDate ( int year, int quarter ) : System.DateTime | ||
year | int | |
quarter | int | |
Результат | System.DateTime |
public static GetQuarterStartDate ( System.DateTime date ) : System.DateTime | ||
date | System.DateTime | |
Результат | System.DateTime |
public static GetQuarterStartDate ( int year, int quarter ) : System.DateTime | ||
year | int | |
quarter | int | |
Результат | System.DateTime |
public static GetStartAndEndOfWeek ( int year, int week, System.DateTime &startOfWeek, System.DateTime &endOfWeek, CalendarWeekRule cwr, DayOfWeek firstDayOfWeek ) : void | ||
year | int | |
week | int | |
startOfWeek | System.DateTime | |
endOfWeek | System.DateTime | |
cwr | CalendarWeekRule | |
firstDayOfWeek | DayOfWeek | |
Результат | void |
public static GetStartOfDay ( System.DateTime date ) : System.DateTime | ||
date | System.DateTime | |
Результат | System.DateTime |
public static GetStartOfMonth ( System.DateTime date ) : System.DateTime | ||
date | System.DateTime | |
Результат | System.DateTime |
public static GetStartOfMonth ( int monthOffsetFromCurrentMonth ) : System.DateTime | ||
monthOffsetFromCurrentMonth | int | |
Результат | System.DateTime |
public static GetStartOfYear ( System.DateTime now ) : System.DateTime | ||
now | System.DateTime | |
Результат | System.DateTime |
public static IsInSameMonth ( System.DateTime startDate, System.DateTime endDate ) : bool | ||
startDate | System.DateTime | |
endDate | System.DateTime | |
Результат | bool |
public static IsInSameYear ( System.DateTime startDate, System.DateTime endDate ) : bool | ||
startDate | System.DateTime | |
endDate | System.DateTime | |
Результат | bool |
public static OccursWithinDaysAfter ( System.DateTime date, int days, System.DateTime fromDate ) : bool | ||
date | System.DateTime | |
days | int | |
fromDate | System.DateTime | |
Результат | bool |
public static OccursWithinDaysBefore ( System.DateTime date, int days, System.DateTime fromDate ) : bool | ||
date | System.DateTime | |
days | int | |
fromDate | System.DateTime | |
Результат | bool |