From NSB App Studio
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.
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)
// Day Example /* Day returns number representing dayof month */ var Today, NextQuarter; Today = new Date(); NextQuarter = new Date(Today); NextQuarter.setDate(NextQuarter.getDate()+90); NSB.Print("Today's day is " + Today.getDate()); NSB.Print("90 days from now it will be " + NextQuarter.getDate());
Today's day is 18 90 days from now it will be 16