Hi Robby,
You need to look at ArcValue method with the relevant Retrieval Type Constant - in this case rtAtOrAfter. Then supply your timestamp and you get returned the value at the time or the next available value.
Example:
Code:
Dim Tag As PISDK.PIPoint = _Server.PIPoints("TAGNAME")
Dim TagValue As PISDK.PIValue = Tag.Data.ArcValue("t+8h", RetrievalTypeConstants.rtAtOrAfter)
Rhys.
Principal Consultant
Real-Time Data Management @ Wipro Technologies