Date

From NSB App Studio
Jump to navigation Jump to search

Date

Description

Date returns the current system date.

Example

// Date Example
/* Date returns current system date */

var dt = new Date();
var dd = dt.getDate();
var mm = dt.getMonth()+1;
var yyyy = dt.getYear()+1900;
var Today = mm + '/' + dd + '/' + yyyy;
NSB.Print(Today);

Rem Date Example
'Date returns current system date
Dim Today
Today = Date
Print "Today is " & Today

Output

Today is 8/18/1998
(sample date output is system dependant)

Related Items

Now, Time