addMinutes

Modified on Tue, 22 Aug 2023

Description

Use this function to add the specified number of minutes to the given date.

Syntax

addMinutes(date, number)

Returns

Return ValueDescription
DateReturns the resulting date after adding the specified number of minutes.

Sample

ExampleResultDescription
addMinutes (2023-04-08T12:00:00, 30)Friday Apr 08 2023 12:30:00Returns the resulting date after adding 30 minutes to the input date (2023-04-08T12:00:00).

To view all the Date functions, click here.