I am trying to convert a date that is returned to me with it in this format:
2022-02-09T14:43:32
I am trying to get it to look like this
2/9/2022 2:43PM
I tried this but it says it is not a valid format.
workRow["ShiftStart"] = DateTime.ParseExact(theTempsDataSet.Tables[0].Rows[i]["shiftStartTime"].ToString(), "dd/mm/yyyy hh:mmtt", CultureInfo.InvariantCulture).ToString();