Hi,
I want to change date string. I am giving the code and output below;
DateTime.Now.ToString();
26.09.2012 11:25:20
But I want to change this output to "26.09.2012.11.25.20"
How can I do that?
Changing date string
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Sep 26, 2012, 5:10 AM EDT
string date = DateTime.Now.ToString("dd.MM.yyyy.HH.mm.ss");
FroglegRank #1,020 · 1.9K reputationPosted Sep 26, 2012, 12:32 AM EDT
Santhosh Kumar JayaramanRank #563 · 4.3K reputationPosted Sep 26, 2012, 12:33 AM EDT
yokzuRank #5,421 · 300 reputationPosted Sep 27, 2012, 10:55 PM EDT