Day: Difference between revisions
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'') | |||
== 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 == | |||
<pre> | <pre> | ||
REM | REM Day Example | ||
' | '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 " & | 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 == | |||
<pre> | <pre> | ||
Line 25: | Line 25: | ||
</pre> | </pre> | ||
== 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