---
schema_version: "1"
id: 9ac1a6230a083af51cc190b7ae3c7319f1e3d8d0e8cef8719fb37ede8b546173
title: monthname
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sales/264-0-0/spiff_function_ref_monthname.md
canonical_url: https://help.salesforce.com/s/articleView?id=sales.spiff_function_ref_monthname.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 07ddb57a9301c85641a437ca346abb2b79895a6994a0d50204be14e58b012959
description: Returns the full or abbreviated name of the calendar month for a specified date or time in Salesforce Spiff.
products:
  - Sales Cloud
  - Sales Enablement
release: "264"
---
# monthname

Returns the full or abbreviated name of the calendar month for a specified date or time in Salesforce Spiff.

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

```
monthname(date_or_time, abbreviate)
```

## Arguments

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:20%">
          <col style="width:20%">
          <col style="width:60%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d11519e99">Argument</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d11519e102">Required?</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d11519e105">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Argument" class="slds-cell-wrap" style="vertical-align:top;" headers="d11519e99 "><samp class="parmname">date_or_time</samp></td>

            <td data-label="Required?" class="slds-cell-wrap" style="vertical-align:top;" headers="d11519e102 ">Required</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d11519e105 ">The Date or Date &amp; Time value to evaluate. This argument supports any date functions.</td>

          </tr>
          <tr class="">
            <td data-label="Argument" class="slds-cell-wrap" style="vertical-align:top;" headers="d11519e99 "><samp class="parmname">abbreviate</samp></td>

            <td data-label="Required?" class="slds-cell-wrap" style="vertical-align:top;" headers="d11519e102 ">Optional</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d11519e105 ">
              <p>A Boolean that specifies whether to return the month's full name or abbreviated name.
              </p>
              <ul>
                <li>To return the full name, use <code>true</code>, which is the default value.</li>

                <li>To return the three-character abbreviated name, use <code>false</code>.</li>

              </ul>
            </td>

          </tr>
        </tbody>
      </table>

## Example

Return the full name of the month for January 31, 2025. The return value is `January`.

```
=monthname("2025-01-31")
```

Return the abbreviated name of the month for January 31, 2025. The return value is `Jan`.

```
=monthname("2025-01-31", false)
```