C# - Writing data to a tag using UTC?

Discussion created by Aantje on Jul 27, 2010
Latest reply on Feb 23, 2011 by hanyong

Hi there,

I've written a tool in C# (Visual Studio 2008) that writes data in PI tags. Therefore I've used the UpdateValue method as follows:

mypoint.Data.UpdateValue(newvalue, timestamp, PISDK.DataMergeConstants.dmErrorDuplicates, null);

The timestamp comes from a textbox and is normally something like '24.6.2010 14:30:00'

But now I want to enter the timestamp in UTC, so I have 2 questions:

How do I a conversion from a 'normal timestamp' to a UTC timestamp, and how do I use the UTC timestamp in the UpdateValue method?