It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it开发者_JAVA技巧 can be reopened, visit the help center.
Closed 11 years ago.
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
精彩评论