Day

From NSB App Studio
Revision as of 03:00, 4 July 2012 by Brendon (talk | contribs) (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 ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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