The INTCK function in SAS can be used to calculate the difference between two dates in SAS.
The syntax of INTCK function is as follows:
INTCK(interval, start date, end data, method)
- interval: Interval to calculate (day, week, month, quarter, year etc.)
- start date: Starting SAS date
- end date: Ending SAS date
- method: This is optional argument. Intervals are counted using either a discrete or a continuous method. 'D' for discrete (Default), 'C' for continuous.)