DATE

Synopsis

HELP:   Date-detector hints: year-range, pivot, locale, epoch-base
TYPE:   OBJECT
SYNTAX: DATE(YEARMIN=num,YEARMAX=num,PIVOT=num,LOCALE=AUTO/ISO/DE/US/ANSI/FR/CH,EPOCHBASE=AUTO/UNIX/LILIAN/J2000/EXCEL)

Description

The DATE sub-object inside DETECT(HINTS(...)) carries date-detector filters that restrict the type detector at bit-setting time. Every hint is optional; omitting them keeps the detector at its default, which sets every plausible date-subformat bit and lets the picker resolve via highest-bit-wins.

Year-range filter

YEARMIN and YEARMAX bound the plausible 4-digit year. Values outside this range cause the corresponding DATE bits to stay clear.

The defaults are deliberately wide; tighten them only when the input domain is known. For example, banking data with historical entries back to 1800:

detect(hints(date(yearmin=1800 yearmax=2026)))

Pivot for 2-digit years

PIVOT controls the cut-off for 2-digit years. Values <= PIVOT map to 20YY (current century), values > PIVOT map to 19YY. The default matches DEFAULTS.PIVOT.

detect(hints(date(pivot=30)))

Locale and epoch-base

LOCALE narrows the locale set for date detection (e.g. only DE-style DD.MM.YYYY). AUTO falls back to HINTS.LOCALE.

EPOCHBASE selects the integer-as-date interpretation: AUTO, UNIX, LILIAN, J2000 or EXCEL. Use it when binary date columns are known to use a specific epoch.

Arguments