main/core/Library/Normalizer/DateRangeNormalizer.php
public static function normalize(\DateTime $startDate = null, \DateTime $endDate = null)
    {
        if (!empty($startDate) || !empty($endDate)) {
            return [
                DateNormalizer::normalize($startDate),
                DateNormalizer::normalize($endDate),
            ];
        }

        return [];
    }
public static function normalize(\DateTime $startDate = null, \DateTime $endDate = null)
    {
        if (!empty($startDate) || !empty($endDate)) {
            return [
                DateNormalizer::normalize($startDate),
                DateNormalizer::normalize($endDate),
            ];
        }

        return [];
    }
public static function normalize ( \ DateTime $ startDate = null , \ DateTime $ endDate = null ) { if ( ! empty ( $ startDate ) || ! empty ( $ endDate ) ) { return [ DateNormalizer :: normalize ( $ startDate ) , DateNormalizer :: normalize ( $ endDate ) , ] ; } return [ ] ; }
Normalizes two DateTimes to an array of date strings.

@param \DateTime|null $startDate
@param \DateTime|null $endDate

@return array
Normalizes two DateTimes to an array of date strings .