tags:

views:

37

answers:

2
+1  Q: 

DateTime Format

When i invoke ToString method of DateTime i get the follow string "17.05.2010 8:05:22". Is there any other DateTime format where i can get the follow string "17.05.2010 08:05:22" with zero before eight hours?

+4  A: 
someDateInstance.ToString("dd.MM.yyyy HH:mm:ss")
Darin Dimitrov
+6  A: 

Take a look here:

link text

Boris Modylevsky