You are here

public function TaxRatePercentage::getEndDate in Commerce Core 8.2

Gets the end date.

Parameters

string $store_timezone: The store timezone. E.g. "Europe/Berlin".

Return value

\Drupal\Core\Datetime\DrupalDateTime|null The end date, or NULL if not known.

File

modules/tax/src/TaxRatePercentage.php, line 114

Class

TaxRatePercentage
Represents a tax rate percentage.

Namespace

Drupal\commerce_tax

Code

public function getEndDate($store_timezone = 'UTC') {
  if ($this->endDate) {
    return new DrupalDateTime($this->endDate, $store_timezone);
  }
}