For example, the month difference ... month, calculate the difference in days instead. You can alsouse the minus sign (-) to calculate the difference between two dates by subtracting one date from another.... Learn how to calculate the difference betweendates/times inSnowflake. DATEDIFF SQL function examples for common scenarios. Use theminussign (-) shorthand. Dec 24, 2023 ·The DATEDIFF function inSnowflakefacilitates the calculation of the difference between twodate, time, or timestamp values. The function allows for determining the number of years, months, or days between twodates, as well as the number of hours, minutes, or seconds between two timestamp values. SELECT TODATE('2022-05-08') AS originaldate, DATEADD(year, -2, TODATE('2022-05-08')) AS dateminustwoyears; SELECT CURRENT_DATE() - 9 AS ... | 2024-08-19 | +-----------------+ Show lessSee more · Scroll to top ·Calculate the difference between the current date and the date in three years: CopyExpand ·... June 30, 2025 -The Snowflake DATEADD function is a relatively simple yet powerful method of performing any type of date arithmetic, whichallows data professionals to add or subtract the specific interval of time from a date, time, or timestamp value. May 18, 2025 -The following example demonstrates adding and subtracting time intervals from a specified Date or Timestamp value using theDATEADD functionin Snowflake. January 27, 2026 -We use the day as the date or time part and 10 as the value. The result is a new date value that is 10 days later than today. Another use case of Snowflake DATEADD function is tosubtract dates using a negative number as the argument. Accuracy across leap years and month ends: DATEADD handles variations in month lengths and leap years, so if you add or subtract months, Snowflake adjusts the result intelligently. January 22, 2025 -The DATEADD function works by taking three arguments: the unit of time to be added, the value or interval of time to add or subtract, and the date or timestamp to which the adjustment is applied. This makes it highly versatile for a variety of date and time operations. If your task involves calculating the difference between two dates, the DATEDIFF function in Snowflake is a more suitable option.