NTOD(<N year>, <N month>, <N day>)
Converts numeric date parameters to date type.
Returns <expD> date type of <year>, <month>, and <day>.

Negative parameter values are converted to positive.

Returns blank <expD> if syntax error.

Makes valid date from invalid parameters. For example,
<day> of zero becomes last day of previous month, each
multiple of twelve months increments the year and
subtracts twelve from itself.

* Date from calculations may be invalid
m_date = CTOD(STR( YEAR(DATE()) ) +"/"+;
STR( MONTH(DATE()) + m_months ) +"/"+;
STR( DAY(DATE()) + m_days ) )

* Date from calculations is valid
m_date = NTOD( YEAR(DATE()) ,;
MONTH(DATE()) + m_months,;
DAY(DATE()) + m_days )


Placed in the Public Domain by Tom Rettig Assoc.