Data format string in uppercase

  • Thread starter Thread starter Arjen
  • Start date Start date
A

Arjen

Hello,

How can I display the first char in uppercase?
(This is the first letter of the dayname)

Here is my currect dataformat:
DataFormatString="{0:ddd. dd MMM. yyyy}"

Thanks!
 
There are a few ways to do this....here's one

string x = "the red rover rolled around.";
x = x[0].ToString().ToUpper() + x.Substring(1, x.Length - 1);
 
Back
Top