Search Results

  1. For example, when initialized with the recurrences parameter, or the isostr parameter without an end date. Returns a DateTimeImmutable object when the DatePeriod is initialized with a DateTimeImmutable object as the end parameter. Returns a cloned DateTime object representing the end date otherwise.

  2. Sep 30, 2019 · The DatePeriod::getEndDate () function is an inbuilt function in PHP which is used to return the end date. If the given date period does not have any end date then it returns NULL.

  3. Execute DatePeriod::getEndDate Online. Info and examples on DatePeriod::getEndDate PHP Function from Date and Time - Date and Time Related Extensions

  4. For example, when initialized with the recurrences parameter, or the isostr parameter without an end date. Returns a DateTimeImmutable object when the DatePeriod is initialized with a DateTimeImmutable object as the end parameter. Returns a cloned DateTime object representing the end date otherwise.

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

  6. When looping over a DatePeriod object, the returned objects always implement DateTimeInterface. The exact type returned depends on how the DatePeriod was created.

  7. People also ask

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