Hello,
You sure can, check out the "PITimeFormat" object from the "PITimeServer" type library.
Code:
Dim PTF As New PITimeServer.PITimeFormat()
PTF.InputString = "*-8h"
Dim DT As DateTime = PTF.LocalDate
If you are working across time zones then also check out the "PITimeZoneInfo" object, which is a property of the "PITimeFormat" object.
Principal Consultant
Real-Time Data Management @ Wipro Technologies