docs-v2/content/v2.0/reference/flux/stdlib/date/month.md

561 B

title description aliases menu weight
date.month() function The `date.month()` function returns the month of a specified time. Results range from `[1-12]`.
/v2.0/reference/flux/functions/date/month/
v2_0_ref
name parent
date.month Date
301

The date.month() function returns the month of a specified time. Results range from [1-12].

Function type: Transformation

import "date"

date.month(t: 2019-07-17T12:05:21.012Z)

// Returns 7

Parameters

t

The time to operate on.

Data type: Time