Decade

combit List & Label Designer

combit List & Label

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:

Str$(Decade(Date("01.01.2009")),0,0)                 Result: 1

Str$(Decade(Date("01.01.2000")),0,0)                 Result: 10

Str$(Decade(Date("01.01.2000"),.T.),0,0)            Result: 1