GregorianCalendar.AddWeeks(DateTime, Int32) GregorianCalendar.AddWeeks(DateTime, Int32) GregorianCalendar.AddWeeks(DateTime, Int32) GregorianCalendar.AddWeeks(DateTime, Int32) Method

Definición

Devuelve un DateTime que es el número especificado de semanas aparte especificado DateTime.Returns a DateTime that is the specified number of weeks away from the specified DateTime.

public:
 override DateTime AddWeeks(DateTime time, int weeks);
public override DateTime AddWeeks (DateTime time, int weeks);
override this.AddWeeks : DateTime * int -> DateTime
Public Overrides Function AddWeeks (time As DateTime, weeks As Integer) As DateTime

Parámetros

time
DateTime DateTime DateTime DateTime

El DateTime que se va a agregar las semanas.The DateTime to which to add weeks.

weeks
Int32 Int32 Int32 Int32

El número de semanas para agregar.The number of weeks to add.

Devoluciones

El DateTime que el resultado de sumar el número especificado de semanas a especificado DateTime.The DateTime that results from adding the specified number of weeks to the specified DateTime.

Se aplica a