System.Net.HttpProtocolUtils.string2date C# (CSharp) Method

string2date() static private method

static private string2date ( String S ) : DateTime
S String
return DateTime
        internal static DateTime string2date(String S) {
            DateTime dtOut;
            if (HttpDateParse.ParseHttpDate(S,out dtOut)) {
                return dtOut;
            }
            else {
                throw new ProtocolViolationException(SR.GetString(SR.net_baddate));
            }

        }