Converts string to DateTimeOffset: String with time only(11:36 PM)
using System; using System.Globalization; public class Test { public static void Main() { string dateString; DateTimeOffset offsetDate; dateString = "11:36 PM"; offsetDate = DateTimeOffset.Parse(dateString); Console.WriteLine(offsetDate.ToString()); } }