DbFunction constants

The DbFunction constants identify a function type for a field type (QueryFieldDef). These are date functions that can only be applied to datetime fields.

Constant Value Description
_DB_DAY_FUNC 1 The current day iteself. For example, 8/29/2002.
_DB_WEEK_FUNC 2 The week number of the year and the year, separated by a comma. For example, 35,2002 for 8/29/2002 (the 35th week of the year).
_DB_MONTH_FUNC 3 The first of the month. For example, 8/1/2002 for the current day, 8/29/2002.
_DB_YEAR_FUNC 4 The date that is the first of the year. For example, 1/1/2002 for the current day, 8/29/2002.