FIRSTDAY C-3





Copyright (C) 1994-95 Conetic Software Systems, Inc. All names, products, and services mentioned are the trademarks of their respective organizations.



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)