DatePeriod::getStartDate
PHP 5 >= 5.6.5, PHP 7, PHP 8
DatePeriod::getStartDate - Gets the start date
Manual
DatePeriod::getStartDate(
): public 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 parameter.
Returns a DateTime object otherwise.