SQL Datediff (date_part, start_date, end_date)

SELECT DATEDIFF(month, '2020-12-31 23:59:59', '2022-01-01 00:00:00');
-- outputs: 13
SAMER SAEID