Month: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Brendon (talk | contribs)
Created page with "MONTH(''date) '''Description''' MONTH returns a whole number ranging from 1 to 12 that represents the month of the year, of a given date.The required parameter, date, can be..."
 
Brendon (talk | contribs)
No edit summary
Line 3: Line 3:
'''Description'''
'''Description'''


MONTH returns a whole number ranging from 1 to 12 that represents the month of the year, of a given date.The required parameter, date, can be any numeric or string expression, or any expression that represents a date.
MONTH returns a whole number ranging from 1 to 12 that represents the month of the year, of a given date.The required parameter, ''date'', can be any numeric or string expression, or any expression that represents a date.


'''Example'''
'''Example'''

Revision as of 18:05, 8 July 2012

MONTH(date)

Description

MONTH returns a whole number ranging from 1 to 12 that represents the month of the year, of a given date.The required parameter, date, can be any numeric or string expression, or any expression that represents a date.

Example

REM MONTH Example
'MONTH returns month of year of a date
DIM When
When = NOW
PRINT "The MONTH of " & When & " is " _ 
       & MONTH(When)

Output

The MONTH of 8/18/1998 10:52:44 PM is 8
(sample date output is system dependant)

Related Items

DAY, HOUR, MINUTE, NOW, SECOND, TIME, YEAR