Date.Month

Date.Month is a Power Query M function that returns the month belonging to the provided date(time) value.

Compatible with: Power BI Service Power BI Desktop Excel Microsoft 365

Syntax

Date.Month( dateTime as any ) as nullable number

Description

Returns the month component of the provided datetime value, dateTime.

Examples

Find the month in #datetime( 2011, 12, 31, 9, 15, 36 ).

// Output: 12
Date.Month( #datetime( 2011, 12, 31, 9, 15, 36 ) )

Learn more about Date.Month in the following articles:

Other functions related to Date.Month are:

BI Gorilla Blog

Last update: August 25, 2023 | Contribute » | Contributors: Rick de Groot
Microsoft documentation: https://learn.microsoft.com/en-us/powerquery-m/date-month
© 2023 BI Gorilla. All rights reserved. Content derived from Microsoft documentation is property of Microsoft Corp.