Table of contents
Collapse the table of content
Expand the table of content

Application.DateAdd Method (Project)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Returns the date and time that follows another date by a specified duration, for an automatically scheduled task.


expression. DateAdd( ** StartDate, ** Duration, ** Calendar** )

expression A variable that represents an Application object.


NameRequired/OptionalData TypeDescription
StartDateRequiredVariantThe original date to which the duration is added.
DurationRequiredVariantThe duration to add to the start date.
CalendarOptionalObjectA resource, task, or base calendar object. The default value is the calendar of the active project.

Return Value



To to add a duration to a date for a manually scheduled task, which uses an effective calendar that can include non-working time, use the EffectiveDateAdd property.


The following example displays the finish date of a three-day automatically scheduled task that begins on 7/11/07 at 8 A.M.

Sub FindFinishDate() 
 MsgBox Application.DateAdd(StartDate:="7/11/07 8:00 AM", Duration:="3d") 
End Sub
© 2018 Microsoft