ArcObjects Library Reference (NetworkAnalyst)  

INAVRPSolver.DefaultDate Property

The date to use for time windows without dates.

[Visual Basic .NET]
Public Property DefaultDate As DateTime
[C#]
public DateTime DefaultDate {get; set;}
[C++]
HRESULT get_DefaultDate(
  DATE* date
);
[C++]
HRESULT put_DefaultDate(
  DATE date
);
[C++]

Parameters

date [out, retval]   date is a parameter of type DATE date [in]   date is a parameter of type DATE

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Network Analyst Extension.

Remarks

The DefaultDate property is used to specify the default date portion of date-based fields (where FieldType = esriFieldTypeDate) within the NAClasses of a VRP NAContext. Fields of type esriFieldTypeDate can actually be used to specify both date-time values (e.g., June 1, 2008, 8AM) and time-only values (e.g., 8AM). Time-only values will be interpreted by the VRP solver as having a date portion equal to the DefaultDate property value.

For example, if a date-based field value within a particular NAClass of a VRP NAContext is set as the time-only value 8AM and the DefaultDate property value is set as June 1, 2008, then the VRP solver will interpret this date-based field value as June 1, 2008, 8AM.

The DefaultDate property cannot be before January 1, 1900 or after December 31, 9999. By default, the DefaultDate property is set equal to the current date when the solver is created.

See Also

INAVRPSolver Interface

.NET Snippets

Set Vehicle Routing Problem Properties

.NET Samples

ArcGIS Network Analyst extension Engine application (Code Files: frmNALayerProperties)