Esempio n. 1
0
 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);
 }
Esempio n. 2
0
        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));
        }