Month: Difference between revisions
Jump to navigation
Jump to search
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: | ||
''This function is for BASIC compatibility. It is not available in pure JavaScript projects.'' | |||
'' | Month(''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 | |||
' | 'Month returns month of year of a date | ||
Dim When | |||
When = | When = Now | ||
Print "The Month of " & When & " is " _ | |||
& | & Month(When) | ||
</pre> | </pre> | ||
== Output == | |||
<pre> | <pre> | ||
The | 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 == | |||
[[day|Day]], [[hour|Hour]], [[minute|Minute]], [[now|Now]], [[second|Second]], [[time|Time]], [[year|Year]] | |||
[[Category:Language Reference]] | |||
[[Category:Date and Time]] | |||
[[ | [[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)