public static bool FromRocTry(string s, out DateTime result, string format = "yyy.MM.dd") { if (!DateTime.TryParseExact(s, format, CultureInfo.InvariantCulture, DateTimeStyles.None, out result)) { return(false); } result = CtkTimeUtil.FromRoc(result); return(true); }
public static DateTime FromRoc(string s, string format = "yyy.MM.dd") { var roc = DateTime.ParseExact(s, format, CultureInfo.InvariantCulture, DateTimeStyles.None); return(CtkTimeUtil.FromRoc(roc)); }