Century

Purpose:

Returns the century of the date.

Parameter:

Date    

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

Return value:

Number

Example:

Century(Date("01.01.2000"))                   Result: 20

Century(Date("01.01.2001"))                   Result: 21

Century(Date("01.01.2000"),True)  Result: 21