Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
C#
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
Aspectacular
DateTimeExtensions
Quarter
Aspectacular.DateTimeExtensions.Quarter C# (CSharp) Метод
Документация по классу DateTimeExtensions
Показать файл
Открыть проект
Quarter()
публичный
статический
Метод
Returns quarter number 1..4
public
static
Quarter
(
this
dt
) :
int
dt
this
Результат
int
public static int Quarter(this DateTime dt) { return (dt.Month - 1)/3 + 1; }
DateTimeExtensions
FromSortableIntDateTime
FromSortableIntTime
GoTo
IsUtc
PreviousMoment
Quarter
ToDateTime
ToSortableIntDate
ToSortableIntTime
ToSortableLongDateTime
ToSortableLongTime
WeekOfYear