Date.AddQuartersDate.AddQuarters

SintaxeSyntax

Date.AddQuarters(dateTime as any, numberOfQuarters as number) as any  

SobreAbout

Retorna o resultado date, datetime ou datetimezone de adicionar numberOfQuarters trimestres ao valor datetime., dateTime.Returns the date, datetime, or datetimezone result from adding numberOfQuarters quarters to the datetime value dateTime.

  • dateTime: O valor date, datetime ou datetimezone ao qual os trimestres estão sendo adicionado.dateTime: The date, datetime, or datetimezone value to which quarters are being added.
  • numberOfQuarters: O número de trimestres a serem adicionados.numberOfQuarters: The number of quarters to add.

Exemplo 1Example 1

Adicione um trimestre ao valor date, datetime ou datetimezone que representa a data 14/05/2011.Add 1 quarter to the date, datetime, or datetimezone value representing the date 5/14/2011.

Date.AddQuarters(#date(2011, 5, 14), 1)

#date(2011, 8, 14)