Press "Enter" to skip to content

Counting Months between Dates

Kevin Wilkie counts the months before his release:

Figuring out the number of years or months between 2 dates shouldn’t be hard. For some reason though, for a lot of database systems it is.

Kevin gives us answers in SQL Server and Snowflake, including a bonus bit of code to correct a problem that he spotted in the first bit of code. Date math is hard.