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..."
 
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
MONTH(''date)
''This function is for BASIC compatibility. It is not available in pure JavaScript projects.''


'''Description'''
Month(''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.
== Description ==


'''Example'''
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 (Basic) ==


<pre>
<pre>
REM MONTH Example
Rem Month Example
'MONTH returns month of year of a date
'Month returns month of year of a date
DIM When
Dim When
When = NOW
When = Now
PRINT "The MONTH of " & When & " is " _  
Print "The Month of " & When & " is " _  
       & MONTH(When)
       & Month(When)
</pre>
</pre>


'''Output'''
== Output ==


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


'''Related Items'''
== Related Items ==
 
[[day|Day]], [[hour|Hour]], [[minute|Minute]], [[now|Now]], [[second|Second]], [[time|Time]], [[year|Year]]
 
[[Category:Language Reference]]
 
[[Category:Date and Time]]


[[day|DAY]], [[hour|HOUR]], [[minute|MINUTE]], [[now|NOW]], [[second|SECOND]], [[time|TIME]], [[year|YEAR]]
[[Category:BASIC Functions]]

Latest revision as of 15:31, 25 March 2019

This function is for BASIC compatibility. It is not available in pure JavaScript projects.

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 (Basic)

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