Search Results
Return Values ¶ Returns a DateTimeImmutable object when the DatePeriod is initialized with a DateTimeImmutable object as the start parameter. Returns a DateTime object otherwise.
Sep 30, 2019 · The DatePeriod::getStartDate () function is an inbuilt function in PHP which is used to return the start date of the given date period. Syntax: DateTimeInterface DatePeriod::getStartDate ( void )
Sep 3, 2025 · Return Values Returns a DateTimeImmutable object when the DatePeriod is initialized with a DateTimeImmutable object as the start parameter.
Simple usage example of `DatePeriod::getStartDate ()`. The DatePeriod::getStartDate function is used to retrieve the start date of a DatePeriod object. A DatePeriod represents a range of dates and times, and this function allows you to access the beginning date of that range.
The DatePeriod class Introduction (PHP 5 >= 5.3.0, PHP 7) Represents a date period. A date period allows iteration over a set of dates and times, recurring at regular intervals, over a given period. Class synopsis
DatePeriod::getStartDate (PHP 5 >= 5.6.5, PHP 7) DatePeriod::getStartDate — Gets the start date Description Object oriented style public DatePeriod::getStartDate ( ) : DateTimeInterface Gets the start date of the period. Parameters This function has no parameters. Return Values Returns a DateTimeImmutable object when the DatePeriod is initialized with a DateTimeImmutable object as the start ...
People also ask
What is dateperiod getstartdate() function in PHP?
What does getstartdate() do?
What is an example of a dateperiod in PHP?
What is a recurrence in a dateperiod?
PHP 5 >= 5.6.5, PHP 7, PHP 8 DatePeriod::getStartDate - Gets the start date Manual Code Examples
