Is it possible to include the day suffix when formatting a date using DateTime.ToString()?
For example I would like to print the date in the following format – Monday 27th July 2009. However the closest example I can find using DateTime.ToString() is Monday 27 July 2009.
Can I do this with DateTime.ToString() or am I going to have to fall back to my own code?
As a reference I always use/refer to [SteveX String Formatting] 1
and there doesn’t appear to be any "th" in any of the available variables but you could easily build a string with
You would then have to supply a "st" for 1, "nd" for 2, "rd" for 3, and "th" for all others and could be in-lined with a "? :" statement.