Free cookie consent management tool by TermsFeed weekday() Function
weekday() Function

Function

weekday( date, return_type )

Returns the day of the week of the specified date.

Parameters

Keyword Type Description

date

Date

The date that the day of the week will be calculated from

return_type

Integer

Controls how the days of the week are numbered with 1 correlating 1-7 with Sunday-Saturday, 2 correlating 1-7 with Monday-Sunday, and 3 correlating 0-6 with Monday-Sunday.

Returns

Integer

Usage considerations

The default value of return_type is 1.

Examples

weekday(date(2011,12,13)) returns 3

Feature compatibility

The table below lists this function's compatibility with various features in Appian.
Feature Compatibility Note
Portals Compatible
Offline Mobile Compatible
Sync-Time Custom Record Fields Compatible

Can be used to create a custom record field that only evaluates at sync time.

Real-Time Custom Record Fields Incompatible

Custom record fields that evaluate in real time must be configured using one or more Custom Field functions.

Process Reports Compatible
Process Events Compatible

weekday() Function

FEEDBACK