public function toSqlDate(DateTimeInterface $date, Provider $provider = null) : string
    {
        $this->setParameterProvider($provider);

        return $date->format($provider->getDateFormat());
    }