Hello,
The date() function in the expression browser has the following help verbage:
Date(, , , , , , )
This function returns the current date.
Parameter 1: An optional Boolean specifying whether to return the date in long format (the default is False).
Parameter 2: An optional number that returns the current year.
Parameter 3: An optional number that returns the current month (from 1 to 12).
Parameter 4: An optional number that returns the day of the month (from 1 to 31).
Parameter 5: An optional number that returns the day of the week (from 1 (Sunday) to 7 (Saturday)).
Parameter 6: An optional number that specifies a timestamp the function uses in place of the current time. Pass a time value you obtain from the expression function Seconds().
Parameter 7: An optional Boolean that 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).
Returns: A string containing the current date in localized format.
The help implies there is a way to get it to return various parameters, such as timeStampInSeconds, or weekday, by passing in an "optional number". I have tried passing in various "numbers", but I cannot get it to return the information, such as weekday. I am having the same problem with the time() function. What is the proper syntax of the expression to get it to do what it says it will do?
Thanks