Date
- Last UpdatedFeb 07, 2023
- 1 minute read
- PI System
- PI OLEDB Enterprise 2019
- Developer
DateTime DATE (timestampLiteral WString = ' * ', referenceTimestamp DateTime = ' * ' )
Converts a timestamp literal into a timestamp. You can use the second arguments to set the reference timestamp for relative literals.
Examples
|
Description |
Function |
|---|---|
|
Beginning of the current month |
|
|
Beginning of the current year |
|
|
First day of year 2017 |
|
|
Day 150 of year 2016 |
|
|
365 days after the first of the current year |
|
|
Current day of the month in January |
or
|
|
Last Monday before first of July |
|
|
First Monday of the current month |
|
|
Last Monday |
|