Fan.Sys.DateTimeStr.parseDate C# (CSharp) Method

parseDate() private method

private parseDate ( string s, bool check ) : Date
s string
check bool
return Date
        internal Date parseDate(string s, bool check)
        {
            try
              {
            parse(s);
            return new Date(year, (int)mon.ordinal(), day);
              }
              catch (Exception) {}
              if (check) throw ParseErr.make("Date", s).val;
              return null;
        }