For instance, let's say I have the DateTime format-string in a string variable, is there any syntax or method in .NET that would let me do the equivalent of this invalid code:
String line = String.Format("{0:{1}}", DateTime.Now, dateTimeFormat);
^^^ ^
| |
+-- this would use this --+