Posted on: 1/14/2014 8:38:56 PM | Views : 665

DateTime lat = DateTime.ParseExact(col1, "#YYMMDD HHmm", null);

How would I convert 1131220 (which translates to Century 1, 2013, December 20) into a proper DateTime?  It keeps telling me System.FormatException: String was not recognized as a valid DateTime.

This is a number I'm converting in a datatable.
                foreach (DataRow dRow in ds.Tables[0].Rows)                 {                     string col1 = dRow["date"].ToString() + " " + dRow["time"].ToString();   &nbs ...

Go to the complete details ...