FIRSTDAY C-3


NAME



firstday - return first day of the month for any date

SYNOPSIS



#include

DATE firstday (d)
DATE d;

DESCRIPTION



The function firstday returns the DATE for the first day of the
month of the date passed in the d parameter.

The following returns the last day of the month for any arbitrary
date:

lastday = addmonth (firstday (date), 1) - 1;

SEE ALSO



addmonth(C-3), atodate(C-3)