WorksheetFunction.Days method (Excel)

Returns the number of days between two dates.

Syntax

expression.Days (Arg1, Arg2)

expression A variable that represents a WorksheetFunction object.

Parameters

Name Required/Optional Data type Description
Arg1 Required Variant start_date(Arg2) and end_date (Arg1) are the two dates between which you want to know the number of days.
Arg2 Required Variant start_date(Arg2) and end_date (Arg1) are the two dates between which you want to know the number of days.

Return value

Double

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.