Search Results

  1. Return Values ¶ Returns a DateTimeImmutable object when the DatePeriod is initialized with a DateTimeImmutable object as the start parameter. Returns a DateTime object otherwise.

  2. 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 )

  3. Sep 3, 2025 · Return Values Returns a DateTimeImmutable object when the DatePeriod is initialized with a DateTimeImmutable object as the start parameter.

  4. 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.

  5. 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

  6. 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 ...

  7. People also ask

  8. PHP 5 >= 5.6.5, PHP 7, PHP 8 DatePeriod::getStartDate - Gets the start date Manual Code Examples