addHours

Modified on Sun, 02 Apr 2023

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

Syntax

addHours (date, number)

Returns

Return ValueDescription
Date
Return the absolute value of a number

Sample

addHours("2023-04-03", 5)= Apr 03 2023 13:00:00