DATE::DAYS_IN_MONTH 1g 2025-09-11 laplante@plcb.ca GOWEB/DATE


title: DATE::DAYS_IN_MONTH section: 1g version: 1.0.1 date: 2025-09-11 author: laplante@plcb.ca

category: GOWEB/DATE

SYNOPSIS

date::daysInMonth or daysInMonth(year, month)
date::daysInMonth or daysInMonth()
date::days_in_month or days_in_month(year, month)
date::days_in_month or days_in_month()

DESCRIPTION

The days_in_month function returns the number of days in a month for the specified year and month.

EXAMPLES

    res={{ days_in_month(); }}.
    → res=\d+.

    res={{ days_in_month(2000, 2); }}.
    → res=29.

    res={{ days_in_month(2000, 14); }}.
    → days_in_month : invalid month : 14

    res={{ days_in_month(2000, -14); }}.
    → days_in_month : invalid month : -14

    res={{ days_in_month(-2000, -12); }}.
    → days_in_month : invalid year : -2000

AUTHOR

laplante@plcb.ca

SEE ALSO

VERSION