如何在文本框中显示当前日期与月份名称如2014年11月25日
问题描述:
我想在文本框中显示月份名称的当前日期
我的代码是
I want to display current date in Textbox with month name
My code is
TextBox4.Text = DateTime.Now.ToShortDateString();
它显示为25-11-2014
但是我想要它像2014年11月25日或2014年11月25日
It display like 25-11-2014
But i want it like 25 November 2014 or 25th November 2014
答
read 自定义日期和时间格式字符串 [ ^ ]和标准日期和时间格式字符串 [ ^ ]
read Custom Date and Time Format Strings[^] and Standard Date and Time Format Strings[^]