So I had to convert a date in the format of (MM-dd-yyyy) to (dd-MMM-yyyy). What I ended up doing was this...
string strProvisionalDate = "04-22-2001";
string strFormat = "MM-dd-yyyy";
DateTime dtProvisional;
DateTime.TryParseExact(strProvisionalDate, strFormat, CultureInfo.InvariantCulture, DateTimeStyles.None, out dtProvisional);
string strProvisionalDateConverted = dtProvisional.ToString("dd-MMM-yyyy");
string strFormatConverted = "dd-MMM-yyyy";
DateTime dtProvisionalConverted;
DateTime.TryParseExact(strProvisionalDateConverted, strFormatConverted, CultureInfo.InvariantCulture, DateTimeStyles.None, out dtProvisionalConverted);
Basically, I converted it to DateTime, converted that to a string in the format I wanted, then converted that back to DateTime. It works, but I was curious to ask if there was a better way to do this...it doesn't seem very elegant.
edit: Turns out, in this dtProvisional and dtProvisionalConverted end up being the same. So my new question would be, how can I convert a string in the format of MM-dd-YYYY to a DateTime in the format of dd-MMM-yyyy? dtProvisional is going into a SQL database, and it has to be in Date format.