I am using the following to format a DateTime:
DateTime CusDate = dateTimePicker1.Value;
string Date = CusDate.ToString("ddMMMyyyy");
I am getting the format such that “Nov” is not in upper case:
04Nov2011
But I want the format of “Nov” in capital letters, like this:
04NOV2011
This is because I am downloading a file from a website programatically which is in this format.
Just do the string ToUpper():