CURRENT_WEEKDAY macro

The CURRENT_WEEKDAY macro is available in Unica Campaign and Unica Interact.

Syntax

CURRENT_WEEKDAY()

Description

CURRENT_WEEKDAY returns the current day of the week as a number between 0-6. Sunday is represented as 0, Monday as 1, and so on.

Examples

If today is Friday, CURRENT_WEEKDAY() returns the number 5.

Related functions

Function Description
CURRENT_DAY Returns the current day as a number.
CURRENT_JULIAN Returns the current Julian number.
CURRENT_MONTH Returns the current month as a number.
CURRENT_TIME Returns the current time as a string.
CURRENT_YEAR Returns the current year as a number.