Laravel\Cashier\Invoice::date PHP Method

date() public method

Get a Carbon date for the invoice.
public date ( DateTimeZone | string $timezone = null ) : Carbon\Carbon
$timezone DateTimeZone | string
return Carbon\Carbon
    public function date($timezone = null)
    {
        $carbon = Carbon::instance($this->transaction->createdAt);
        return $timezone ? $carbon->setTimezone($timezone) : $carbon;
    }