DatePeriod::getStartDate

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

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.

Example of DatePeriod::getStartDate

Show all examples for DatePeriod::getStartDate

PHP Version:


Function DatePeriod::getStartDate:

Date and Time Functions

Most used PHP functions