date time now format [closed]
How do I get only day+month+year in C#?
Vague question.
Do you need this as a string?
DateTime.Now.ToString("MM/dd/yyyy")
There are also Day, Month, Year values you can work with on the DateTime struct.
Everything you need is right here: http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx
精彩评论