Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Analytics and Notifications for PI System Explorer (PI Server 2018)

Weekday

  • Last UpdatedJan 11, 2023
  • 1 minute read

Extract the day of the week from a given time expression.

Syntax

Weekday(t1)

Arguments

  • t1

    A time expression, enclosed in single quotes

Returns

The day of the week, in the range 1-7, where 1 represents a Sunday

Exceptions

None

Example

  • Weekday('*')

    [Return what day of the week today is]

  • Weekday(FindEq('att1', '-7d', '*', 50))

    [Return what day of the week it was when the value of 'att1' was 50 for the first time in the past 7 days]

In This Topic
TitleResults for “How to create a CRG?”Also Available in