getMinimalDaysInFirstWeek()

Returns the minimal days required in the first week of the year.

Syntax

Numeric getMinimalDaysInFirstWeek()

Usage

For example, return the minimal days the first week of the year by calling:
Calendar.fromDate(Date.fromIsoValue(orderline.orders.orderdate.isoValue),"YYYY-MM-DD").getMinimalDaysInFirstWeek()

This example populates a Decimal Format Box.

If the first week is defined as one that contains the first day of the first month of a year, this method returns 1. If the minimal days required must be a full week, this method returns 7.