date-time →
change-of-year() → date-time

returns a temporal value corresponding to the same day and month of the argument value but of the year passed as the parameter. If the original date was the 29th of February and the year passed as a parameter is not a leap year then it returns the 28th of February.

Parameters

This function has no parameters.

Examples

#"2024-01-15 12:30:45" | change-of-year(2025)  #"2025-01-15 12:30:45"

Kind: Function
Scope: temporal
Aliases: dateTime-to-change-of-year


This site uses Just the Docs, a documentation theme for Jekyll.