Navigation:  Reference > Functions >

MonthNum()

Print this Topic Previous pageReturn to chapter overviewNext page

 

MNTH(1)

 

PURPOSE

This function will return the month of a date as a number.

PARTS

1 f/c/eThe date value to use, must be of D type.

 

RETURN TYPE - I

The number range returned is from 1 to 12, January through December.

SEE ALSO

DAYS_IN_MONTH()

INC_MONTH()

DOW()

EXAMPLE

define month type I

month = mnth(date())

 

// month will = system date month is system date is 12/15/2012 month will = 12

 

Other Information

 

EQUALS MONTH TAS 3.0

This is a TAS Professional 3.0 command here for compatibility.  The preferred method is to use the =MNTH() function for the month number, or =CMNTH() for alphanumeric month.

 

EQU_XMT recv_field FLD date_field

 

recv_field - fn/v - Required - The field that is going to receive the month value.  If the receiv-ing field is A type then the result is the character month.  If the receiving field is

numeric the result is the month number (1-12).

 

date_fld - fn/v - Required - The field containing the date value to use for calculating the month.

 

COMMENTS

This is the equivalent of the TAS Professional 3.0 command Equals

 

 

 


Page url: http://www.cassoftware.com/tas/manual/mnth().htm