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 ...")
 
No edit summary
Line 1: Line 1:
DAY(''date'')
Day(''date'')


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


<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 25:
</pre>
</pre>


'''Related Items'''
== Related Items ==


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

Revision as of 20:49, 8 August 2012

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

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