Official Content

Adds minutes to a DateTime attribute or variable.

Syntax

Date | DateTime.AddMinutes(Numeric-expression)

Where:

Date | DateTime
     
Is an attribute or variable based on the Date/DateTime data type, to which the method will add a certain number of minutes.

Numeric-expression
   Is a Numeric expression that indicates the number of minutes to be added to the Date | DateTime.

Type Returned:
DateTime

Scope

Data Types: DateTime

Description

This method adds the specified number of minutes to a given date and time, returning a DateTime with the additional minutes. It is useful for scenarios where you need to manipulate date and time values by adding or subtracting minutes.

Samples

&AppointmentDateTime = &AppointmentDateTime.AddMinutes(10)  // Adds 10 minutes to &AppointmentDateTime variable

See Also

AddHours method
AddDays method

  


Last update: February 2025 | © GeneXus. All rights reserved. GeneXus Powered by Globant