Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Tom Rettigs Library - ntod(<n year>, <n month>, <n day>) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 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.

See Also: CDTOS() ISDSDATE() MAKEDATE() STOD()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson