Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Yandex DataLens
    • Overview
    • Formula syntax
    • Neuroanalyst for creating calculated fields
      • All Functions
        • Overview
        • DATEADD
        • DATEPART
        • DATETRUNC
        • DAY
        • DAYOFWEEK
        • HOUR
        • MINUTE
        • MONTH
        • NOW
        • QUARTER
        • SECOND
        • TODAY
        • WEEK
        • YEAR
      • Function Availability
    • Parameters
  • DataLens Gallery
  • Audit Trails events
  1. Calculated fields
  2. Function reference
  3. Date/Time functions
  4. MONTH

MONTH

Written by
Yandex Cloud
Improved by
amatol
Updated at December 19, 2025
View in Markdown

SyntaxSyntax

MONTH( datetime )

DescriptionDescription

Returns the number of the month in the year of the specified date datetime.

Argument types:

  • datetime — Date | Datetime

Return type: Integer

ExampleExample

Formulas:

  • Date: [Date] ;
  • Month: MONTH([Date]) ;
  • Month name: CASE(MONTH([Date]), 1, "January", 2, "February", 3, "March", 4, "April", 5, "May", 6, "June", 7, "July", 8, "August", 9, "September", 10, "October", 11, "November", 12, "December", "Undefined") .
Date Month Month name
2014-10-06 10 'October'
2014-10-07 10 'October'
2017-03-08 3 'March'
2024-02-12 2 'February'

Data source supportData source support

ClickHouse 21.8, Files, Google Sheets, Microsoft SQL Server 2017 (14.0), MySQL 5.7, Oracle Database 12c (12.1), PostgreSQL 9.3, Trino, Yandex Documents, YDB.

Was the article helpful?

Previous
MINUTE
Next
NOW
© 2026 Direct Cursus Technology L.L.C.