开发者

date time now format [closed]

开发者 https://www.devze.com 2023-02-13 20:10 出处:网络
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

0

精彩评论

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

关注公众号