Decade

Purpose:

Returns the decade of the date. Hint: The value is always relative to the start of the century (1..10)!

Parameter:

Date    

Boolean       (optional) sets whether the calculation should be carried out 'simply' (decade starts with year 0) or 'historically' (decade starts with year 1). Default: False

Return value:

Number

Example:

Decade(Date("01.01.2015"))          Result: 2

Decade(Date("01.01.2000"))          Result: 10

Decade(Date("01.01.2000"),True)   Result: 1