Forcing 4-digit date input

Although all dates are stored with a 4-digit year, by default input of a year into a date field may be 1, 2 or 4 digits. However, Sculptor may be configured to force all dates to be entered with a 4-digit year.

To do this, edit the file $SCULPTOR/default/dates.cfg, adding the line:

ForceDigits=Y

This rule is applied only if the input date format contains a 4-digit year such as yyyy or YYYY. At the moment, it cannot be enforced if there is insufficient space in the input field, though this may change in the future. If a user attempts to enter a year using fewer than four digits, the error “Please enter all four digits of year” is displayed.


RELATED TOPICS

Logical types (date and time)

Date formats