DatePeriod::getStartDateGets the start date DescriptionObject oriented style
public DateTimeInterface DatePeriod::getStartDate
( void
)
Gets the start date of the period. ParametersThis function has no parameters. Return Values
Returns a DateTimeImmutable object
when the DatePeriod is initialized with a
DateTimeImmutable object
as the Returns a DateTime object otherwise. ExamplesExample #1 DatePeriod::getStartDate example
<?php The above example will output: 2016-05-16T00:00:00+0000 See Also
|