Bitrix API

DatePeriods

Class for getting various dates related to the formation of terms.

Table of Contents

Methods

__construct()  : mixed
afterNextWeek()  : Date
calculateDateByStage()  : Date|null
currentWeekLastDay()  : Date
nextWeekFirstDay()  : Date
nextWeekLastDay()  : Date
stageByDate()  : string
today()  : Date
tomorrow()  : Date

Methods

__construct()

public __construct([Datetime|null $now = null ]) : mixed
Parameters
$now : Datetime|null = null

calculateDateByStage()

public calculateDateByStage(string $stage) : Date|null
Parameters
$stage : string
Return values
Date|null

stageByDate()

public stageByDate(Date|null $checkDate) : string
Parameters
$checkDate : Date|null
Return values
string

        
On this page

Search results