---
schema_version: "1"
id: 5586af4b197a12871efdd28542b752d35cc25e9d1a655460296f1e150c41ad03
title: end_of_period
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sales/264-0-0/spiff_function_ref_end_of_period.md
canonical_url: https://help.salesforce.com/s/articleView?id=sales.spiff_function_ref_end_of_period.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 91a13c2acc702194d59057d16e17e81f11a55872d46b4a3b71a21a8a568a6f1b
description: Returns the last day of the statement period for a specific date or time value in Salesforce Spiff. The return format is YYYY-MM-DD.
products:
  - Sales Cloud
  - Sales Enablement
release: "264"
---
# end\_of\_period

Returns the last day of the statement period for a specific date or time value in Salesforce Spiff. The return format is YYYY-MM-DD.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: both Salesforce Classic (not available in all orgs) and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available for an additional cost in: <strong>Professional</strong> Edition with Web Services API Enabled</td></tr></tbody></table>

## Syntax

```
end_of_period(date_or_time)
```

## Arguments

  
| Argument | Required? | Description |
| --- | --- | --- |
| date\_or\_time | Required | The Date or Date & Time value to evaluate. This argument supports any date functions. |

## Example

Return the last day of the statement period for the current day.

```
=end_of_period(Today)
```