> ## Documentation Index
> Fetch the complete documentation index at: https://www.integrate.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ETL: GetMonth

> Extract the month component (1 through 12) from a datetime expression. Use GETMONTH for monthly aggregations in Integrate.io ETL data pipelines.

## Description

Returns the month of a year from a datetime expression.

## Syntax

`GetMonth(datetime_expression)`

## Examples

`GetMonth(ToDate('2013-09-10T08:02:31.667Z'))` returns 9

## Return value datatype

Integer

## Impact of null value

If input is null, returns null.
