I have the following statement
DateTime now = DateTime.Now;
string test = string.Format("{0}{1}{2}{3}", now.Day, now.Month, now.Year, now.Hour);
This gives me:
test = "242200915"
但是我想要类似这样的东西:
test = "2402200915"
So the question is, how can I enforce the string formatter to output each int with the width of 2 while padding with zeroes?