CSharp examples for System:DateTime Time
To Time
using System.Globalization; using System;/*w w w . j a v a2s . c om*/ public class Main{ public static DateTime ToTime(this string stringTime) { return DateTime.ParseExact(stringTime, new[] {"hhmmss", "hh:mm:ss"}, null, DateTimeStyles.None); } }