Day: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
(Created page with "DAY(''date'') '''Description''' DAY returns an integer, ranging from 1 to 31, that represents the day of the month, from a given date. The required parameter, ''date'', can ...")
 
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
DAY(''date'')
''This function is for BASIC compatibility. It is not available in pure JavaScript projects.''  


'''Description'''
Day(''date'')


DAY returns an integer, ranging from 1 to 31, that represents the day of the month, from a given date. The required parameter, ''date'', can be any expression that represents a date.
== Description ==


'''Example'''
Day returns an integer, ranging from 1 to 31, that represents the day of the month, from a given date. The required parameter, ''date'', can be any expression that represents a date.
 
== Example (Basic) ==


<pre>
<pre>
REM DAY Example
Rem Day Example
'DAY returns number representing dayof month
'Day returns number representing dayof month
DIM Today, NextQuarter
Dim Today, NextQuarter
Today = DATE
Today = Date
NextQuarter = Today + 90
NextQuarter = Today + 90
PRINT "Today's day is " & DAY(Today)
Print "Today's day is " & Day(Today)
PRINT "90 days from now it will be " _
Print "90 days from now it will be " _
   & DAY(NextQuarter)
   & Day(NextQuarter)
</pre>
</pre>


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


<pre>
<pre>
Line 25: Line 27:
</pre>
</pre>


'''Related Items'''
== Related Items ==
 
[[hour|Hour]], [[minute|Minute]], [[month|Month]], [[now|Now]], [[second|Second]], [[weekday|WeekDay]], [[year|Year]]
 
[[Category:Language Reference]]
 
[[Category:Date and Time]]


[[hour|HOUR]], [[minute|MINUTE]], [[month|MONTH]], [[now|NOW]], [[second|SECOND]], [[weekday|WEEKDAY]], [[year|YEAR]]
[[Category:BASIC Functions]]

Latest revision as of 15:22, 25 March 2019

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

Day(date)

Description

Day returns an integer, ranging from 1 to 31, that represents the day of the month, from a given date. The required parameter, date, can be any expression that represents a date.

Example (Basic)

Rem Day Example
'Day returns number representing dayof month
Dim Today, NextQuarter
Today = Date
NextQuarter = Today + 90
Print "Today's day is " & Day(Today)
Print "90 days from now it will be " _
  & Day(NextQuarter)

Output

Today's day is 18
90 days from now it will be 16

Related Items

Hour, Minute, Month, Now, Second, WeekDay, Year