Vanguard Software
Forecasting & Planning Solutions
Home Products Solutions Services Customers Partners Company
 
Applying science to business management

contents.gifindex.gifprev1.gifnext1.gif

weekday

Format: weekday( sernum )

Arguments: (time) sernum Optional date and time serial number; default = now

Returns: (text) Day of the week implied by sernum (e.g., Sunday, Monday, etc.)

Note: The serial number used by all date and time primitives is the number of seconds that have elapsed between an arbitrary base date and the specified date and time. Dates before the year 1584 are not valid.

The serial numbers returned by the datenum and now primitives include the time unit of measure. Use formulas including the units years, months, days, hours, minutes, and sec to modify date serial numbers.

Examples: weekday(datenum(1992,7,18,9,15,10)) = Saturday

weekday = current day of the week

weekday(now+100days) = day of the week 100 days from now

See Also: datenum, now, date, time, year, month, day, hour, minute, second

  Demand Planning  |  Financial Forecasting
Forecasting Software  |  Strategic Planning Software  |  Decision Tree Software
Decision Support Software  |  Expert System Software  |  Online Surveys

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2011 Vanguard Software Corporation
Print this page   Email this page to a friend