---
schema_version: "1"
id: 02cc0536eaf6de94ca5a3b49ae91ea5c9c523cbe2486e70557f33f1c0a33a268
title: beginning_of_year
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sales/264-0-0/spiff_function_ref_beginning_of_year.md
canonical_url: https://help.salesforce.com/s/articleView?id=sales.spiff_function_ref_beginning_of_year.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 08f98ed4bb5a522e33577730ce84e620dfb28b89fa6c47e128068c23dd0f71d9
description: Returns the first day of the year for a specific date or time value in Salesforce Spiff. The return format is YYYY-MM-DD. If you've specified fiscal year dates that are different from standard calendar dates, use the beginning_of_fiscal_year() function instead.
products:
  - Sales Cloud
  - Sales Enablement
release: "264"
---
# beginning\_of\_year

Returns the first day of the year for a specific date or time value in Salesforce Spiff. The return format is YYYY-MM-DD. If you've specified fiscal year dates that are different from standard calendar dates, use the `beginning_of_fiscal_year()` function instead.

### 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

```
beginning_of_year(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 first day of the year based on the current statement period's start date. This calculation changes dynamically in each period and returns the beginning of year date associated with the statement period start date.

```
=beginning_of_year(statement_period.start_date)
```

#### See Also

- [Year, Quarter, or Month Functions](https://help.salesforce.com/s/articleView?id=sales.spiff_functions_date_period.htm&release=264.0.0&type=5 "Functions for the beginning and end of a year, quarter, or month in Salesforce Spiff help you compare data during the specified time period. Combine these functions with other functions that process dates.")
- [beginning\_of\_fiscal\_year](https://help.salesforce.com/s/articleView?id=sales.spiff_function_ref_beginning_of_fiscal_year.htm&release=264.0.0&type=5 "Returns the first day of the fiscal year for a specific date or time in Salesforce Spiff. The return format is YYYY-MM-DD. If you haven't specified fiscal year dates in Spiff, this function falls back to a standard calendar year.")