Previous Topic

Next Topic

Book Contents

Book Index

%%$WEEKDAY

The %%$WEEKDAY function calculates on which day of the week a specified date (with a 4-character year) falls. The resolved value is an integer from 1 through 6 or 0, where 1 corresponds to the first day of the week (Sunday or Monday, depending on the site-standard) and 0 corresponds to the last day of the week (Saturday or Sunday).

The format of the %%$WEEKDAY function is:

%%$WEEKDAY date

where date must be (or resolve to) a date in format yyyymmdd.

Example

//* %%SET %%A=%%$WEEKDAY 20000714

%%A is assigned a value of 6 (Friday)

Parent Topic

Functions