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 19, 2015 · DatePeriod only implements the Traversable interface and has no other methods to either access elements or retrieve them. You can do something easy to get start/end dates:

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

  5. DatePeriod::createFromISO8601String — Creates a new DatePeriod object from an ISO8601 string DatePeriod::getDateInterval — Gets the interval DatePeriod::getEndDate — Gets the end date DatePeriod::getRecurrences — Gets the number of recurrences DatePeriod::getStartDate — Gets the start date

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

  7. People also ask

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