CSharp examples for System:DateTimeOffset
From Database Date Time Offset
using System.Globalization; using System;//from www . j ava 2s .c o m public class Main{ public static DateTimeOffset FromDatabaseDateTimeOffset(DateTime dateTime, TimeSpan utcOffset) { return new DateTimeOffset((dateTime + utcOffset).AsUnspecifed(), utcOffset); } }