Now: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
(Add javascript snippet)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
Now returns the current date and time according to the date and time setting of your computer.
Now returns the current date and time according to the date and time setting of your computer.


== Example (Basic) ==
== Example ==


<pre>
<tabber>
Rem Now example
JavaScript=
Print FormatDateTime(Now)
<syntaxhighlight lang="JavaScript">
</pre>
 
== Example (JavaScript) ==
<pre>
// Now example
// Now example
NSB.Print(new Date());
NSB.Print(new Date());
</pre>
</syntaxhighlight>
|-|
BASIC=
<syntaxhighlight lang="vb.net">
' Basic
Print FormatDateTime(Now)
</syntaxhighlight>
</tabber>


== Output ==
== Output ==

Latest revision as of 17:43, 22 July 2019

Now

Description

Now returns the current date and time according to the date and time setting of your computer.

Example

// Now example
NSB.Print(new Date());

' Basic
Print FormatDateTime(Now)

Output

11/11/2004 9:52:27 AM

Related Items

Date, Day, Hour, Minute, Month, Second, Time, WeekDay, Year