Century

combit List & Label Designer

combit List & Label

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:

Str$(Century(Today()),0,0)                      Result: 21

Str$(Century(Date("01.01.2000")),0,0)                Result: 20

Str$(Century(Date("01.01.2001")),0,0)                Result: 21

Str$(Century(Date("01.01.2000"),.T.),0,0)  Result: 21