getDecade

Modified on Tue, 22 Aug 2023

Description

Use this function to get the decade of the given date.

Syntax

getDecade(date)

Returns

Return ValueDescription
NumberReturns the decade of the given date.

Sample

ExampleResultDescription
getDecade(1998-06-15)1990The function returns the decade of the date, which is 1990.

To view all the Date functions, click here.

See Also