[ Web Proxy ]
URL:
Viewing: https://docs.cloud.google.com/data-studio/month [Back]  [Original]

Data Studio  |  Google Cloud Documentation Skip to main content
Google Cloud Documentation [Google Cloud Documentation]
Send feedback Stay organized with collections Save and categorize content based on your preferences.

MONTH

Returns the month of the year for a given date.

Sample usage

MONTH(Date)

Syntax

1) Returns the month from a Date value.

MONTH( date_expression )

2) Returns the month from a compatibility mode Date value.

MONTH( X [, format_string ])

Parameters

Format strings for compatibility mode dates

Supported date functions accept the following input formats if X is a Textfield or expression, or compatibility mode Date:

Supported time functions accept the following input format if X is a Number field or expression:

Examples

Example formula Input Output
MONTH(Date) Jan 1, 2019 January
MONTH(Date as Text, 'BASIC') 2019/01/01-09:40:45 January
MONTH(Date as Number, 'SECONDS') 1561784874 June

MONTH(Date as lots of Numbers, 'MILLIS')

1562004058620 July

Notes

This function works with both compatibility mode dates and upgraded Date and Date & Time data types.

Send feedback

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-08-11 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-11 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page