Day: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
No edit summary
Line 30: Line 30:


[[Category:Language Reference]]
[[Category:Language Reference]]
[[Category:Date and Time]]

Revision as of 18:31, 13 September 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