firstday - return first day of the month for any date
#include
DATE firstday (d)
DATE d;
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;