dayOfWeekAdded by IBM on October 10, 2012 | Version 1 (Original)
|Returns the numeric day of the week where Sunday=1 for the provided date in dateSecs or the current date, if one is not provided. The provided date is a string representing the number of seconds since 00:00:00 GMT, 1 January, 1970.
An error occurs if dateSecs is not well-formed.
Table 1. dayOfWeek parameters
|dateSecs||Integer||Optional. A date represented by the number of seconds since 00:00:00 GMT, 1 January, 1970. If no value is supplied, the current date is used.|
Returns A string containing the day of the week, or an empty string if an error occurs.
Example In this example, the result of dayOfWeek is "5".