There is a current date: DateTime.Now;
In terms of performance, it is more profitable to use:
1. DateTime.Now.ToString(); 2. DateTime.Now.Year + "." + DateTime.Now.Month + "." ... и т.д. ?
I was interested in this question because C # does a bunch of things in the ToString
method, for example, it leads to the format by default (and other different things from the Globalization
assembly). This I learned from the ANTS Memory Profiler .