Converts string to DateTimeOffset: String with date and offset (05/01/2008 +1:00)
using System; using System.Globalization; public class Test { public static void Main() { string dateString; DateTimeOffset offsetDate; dateString = "05/01/2008 +1:00"; offsetDate = DateTimeOffset.Parse(dateString); Console.WriteLine(offsetDate.ToString()); } }