Skip to content
Advertisement

Getting start and end date of a PHP DatePeriod object?

How can i get the start and end date of a DatePeriod object?

JavaScript

Advertisement

Answer

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:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement