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 - cmonthn(<n month>) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 CMONTHN(<N month>)
 Gets the character name of the month from a numeric month parameter.
 Returns <expC> name of month, lowercase with initial capital.

 Returns a null string "" if <month> is less than 1 or greater than 12.

 Useful when working with numeric months instead of dates.

 conception = DATE()
 add_months = 9

 due_month = ((MONTH(conception)-1 + add_months) %12) +1
 * modulus is used to keep months within range of 1 to 12

 ? "Your baby is due in the month of " + CMONTHN(due_month)


             Placed in the Public Domain by Tom Rettig Assoc.

See Also: MAKEDATE()

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