I'm stuck there.... I get the annoying error
The string was not recognized as a valid DateTime. There is a unknown word starting at index 9.
Can you help, I've tried many ways, simply doesn't work out.
See below my code
Code:
string strDate = "01:39 pm Tues 1-2-2007";
DateTimeFormatInfo dtfi = new DateTimeFormatInfo();
dtfi.ShortDatePattern = "hh:mm tt dddd M-d-YYYY";
dtfi.DateSeparator = "-";
DateTime objDate = Convert.ToDateTime(strDate, dtfi);
Thanks