-1

I have this code to retrieve the Localized Date: DateTime.Now.ToString(DateTimeFormatInfo.CurrentInfo.LongDatePattern);

The thing is that it returns the year also. I don't want the year.

So I thought I could remove the year pattern from the LongDatePattern. But there are commas in some countries and it would look bad if I removed the 2013 year.

Can someone help me to be able to do it?

4

1 回答 1

0

Windows.Globalization.DateTimeFormatting.DateTimeFormatter将允许您提供一个模板,该模板准确指定您希望在格式化结果中包含哪些组件(例如“月日日”)。

于 2013-09-23T21:41:42.017 回答