date.year() function

The date.year() function returns the year of a specified time.

Function type: Transformation

import "date"

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

// Returns 2019



The time to operate on.

Data type: Time

This documentation is open source. See a typo? Please, open an issue.

Need help getting up and running? Get Support