I am formatting a date:
str = String.Format(\"{0:MMM d m:mm\"+yearStr+\"}\", dt);
I want to put the word \"at\" after the \"d\", but I don\
Just for fun, but works.
var what=new object[] { "{{{{0:MMM d}}}} {0} {{{{0:m:mm:{{0}}}}}}", "at", yearStr, dt }; var that=what.Aggregate((a, b) => String.Format((String)a, b));
You can merge two lines in one. The at which you want to put between two formats is also parameterized.
at