Date Function

Syntax

String Date(Boolean longFormat = False, [Out] [Number year], [Out] [Number month], [Out] [Number monthDay], [Out] [Number weekDay], [Number timeStampInSeconds], [Boolean baseTimeIsInitTime])

Return Value

String

A string containing the current date in localized format.

Purpose

This function returns the current date.

Parameters

longFormat as Boolean

(Optional) Pass True to return the date in long format (the default is False).

year as Number

(Optional output) Containing the current year.

month as Number

(Optional output) The current month (from 1 to 12).

monthDay as Number

(Optional output) The day of the month (from 1 to 31).

weekDay as Number

(Optional output) The day of the week (from 1 (Sunday) to 7 (Saturday)).

timeStampInSeconds as Number

(Optional) A timestamp the function uses in place of the current time. Pass a time value you obtain from the expression function Seconds().

baseTimeIsInitTime as Boolean

(Optional) Specifies the base time for the timestamp you pass to parameter 6. Pass True if the base time is the time at which the application initialized the TestStand Engine. Pass False if the base time is midnight, January 1, 1970, universal coordinated time (UTC). UTC is also known as Greenwich mean time (GMT).