Newer Version Available

This content describes an older version of this product. View Latest

Calculate the Time Between Two Dates

Use date_diff() and daysBetween() to calculate the time between two dates.

Use now() to get the current time. You can use these functions with DateTime, DateOnly, or Date types.