ExCellerate.Functions.DateTime.Year (excellerate v0.4.0)

Copy Markdown View Source

Extracts the year from a date or datetime.

Accepts Date, NaiveDateTime, or DateTime structs.

Examples

year(date(2024, 6, 15))   2024