Calculates the time difference between two dates.
unit (required) Unit to use for the difference. You can choose either “year”, “month”, “week”, “day”, “hour”, “minute”, or “second”.
start (required) The starting date.
end (required) The ending date.If end is before start the result is negative.
NOTE: The result is rounded to a whole number. If end is before start the result is negative.
Date functions are useful for analyzing date input and extracting individual time components, like year or minute, from date objects.