Day
- Last UpdatedOct 04, 2024
- 1 minute read
- PI System
- PI Server 2018
- PI Server
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]