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

PI System Management Tools

Day

  • Last UpdatedOct 04, 2024
  • 1 minute read

Extract the day of the month from a time expression.

Syntax

Day(t1)

Arguments

  • t1

    time expression enclosed in single quotes

Returns

The day of the month of a time expression in the range 1 through 31

Exceptions

None

Example

  • Day('*')

    [Return what day of the month today is]

  • Day('y')

    [Return what day of the month yesterday was]

  • Day(FindEq('att1', '-28d', '*', 50))

    [Return what day of the month it was when the value of 'att1' was first equal to 50 in the past 28 days]

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