开发者

date time now format [closed]

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜