GregorianCalendar.AddWeeks(DateTime, Int32) Method

Definition

Returns a DateTime that is the specified number of weeks away from the specified DateTime.

C#
public override DateTime AddWeeks(DateTime time, int weeks);

Parameters

time
DateTime

The DateTime to which to add weeks.

weeks
Int32

The number of weeks to add.

Returns

The DateTime that results from adding the specified number of weeks to the specified DateTime.

Applies to

Produkt Versioner
.NET Framework 1.1