Syntax
DateDiff(StartDateTime, EndDateTime [, Units])Examples
DateDiff(Today(), dpDueDate.SelectedDate, TimeUnit.Days)Days left until the due date
Maker notes
- Returns whole units only, with no fractions. Days are the default unit.
Returns the difference between two date/time values in the units you choose.
DateDiff(StartDateTime, EndDateTime [, Units])DateDiff(Today(), dpDueDate.SelectedDate, TimeUnit.Days)Days left until the due date