public static bool TryParseExact(string s, string format, IFormatProvider provider, DateTimeStyles style, out DateTimeBase result) { DateTime resultAsDateTime; bool returnValue = DateTime.TryParseExact(s, format, provider, style, out resultAsDateTime); result = new DateTimeWrapper(resultAsDateTime); return(returnValue); }
public static bool TryParse(string s, out DateTimeBase result) { DateTime resultAsDateTime; bool returnValue = DateTime.TryParse(s, out resultAsDateTime); result = new DateTimeWrapper(resultAsDateTime); return(returnValue); }