DTOP - Payroll date to period conversion (Payroll Report Generator function)

From Catalyst
Jump to: navigation, search

Syntax

$DTOP{date, freq}

Description

Return the period for a given date.

Parameters

date
A numeric parameter that can be omitted.
The date in numeric format. If this is blank then the current user date is used.
freq
A text parameter that can be omitted (it defaults to "M").
M
Monthly.
W
Weekly.
4
4 Weekly.
F
Fortnightly.

Returns

A numeric value. Period.