Date.AddWeeksDate.AddWeeks

SintaxeSyntax

Date.AddWeeks(dateTime as any, numberOfWeeks as number) as any

SobreAbout

Retorna o resultado date, datetime ou datetimezone de adicionar numberOfWeeks semanas ao valor datetime., dateTime.Returns the date, datetime, or datetimezone result from adding numberOfWeeks weeks to the datetime value dateTime.

  • dateTime: O valor date, datetime ou datetimezone ao qual as semanas estão sendo adicionadas.dateTime: The date, datetime, or datetimezone value to which weeks are being added.
  • numberOfWeeks: O número de semanas a serem adicionadas.numberOfWeeks: The number of weeks to add.

Exemplo 1Example 1

Adicione duas semanas ao valor date, datetime ou datetimezone que representa a data 14/05/2011.Add 2 weeks to the date, datetime, or datetimezone value representing the date 5/14/2011.

Date.AddWeeks(#date(2011, 5, 14), 2)

#date(2011, 5, 28)