YEARS_ADD

Learn how to use the YEARS_ADD date/time function in PlaidCloud Lakehouse. Adds a specified number of years to a date - see syntax, examples, and output.

Adds a specified number of years to a date.

Analyze Syntax

func.years_add(<date>, <n>)

Analyze Examples

func.years_add('2024-01-01', 5)

┌──────────────┐
 '2029-01-01'  
└──────────────┘

SQL Syntax

YEARS_ADD(<date>, <n>)

SQL Examples

SELECT YEARS_ADD('2024-01-01', 5);

┌────────────┐
 2029-01-01  
└────────────┘