Now: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by 4 users not shown)
Line 7: Line 7:
== Example ==
== Example ==


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


== Output ==
== Output ==
Line 20: Line 29:
== Related Items ==
== Related Items ==


[[date|DATE]], [[day|DAY]], [[hour|HOUR]], [[minute|MINUTE]], [[month|MONTH]], [[second|SECOND]], [[time|TIME]], [[weekday|WEEKDAY]], [[year|YEAR]]
[[date|Date]], [[day|Day]], [[hour|Hour]], [[minute|Minute]], [[month|Month]], [[second|Second]], [[time|Time]], [[weekday|WeekDay]], [[year|Year]]


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

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