如何在文本框中显示当前日期与月份名称如2014年11月25日 [英] How to display current date in Textbox with month name Like 25 November 2014

查看:76
本文介绍了如何在文本框中显示当前日期与月份名称如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[^]


这篇关于如何在文本框中显示当前日期与月份名称如2014年11月25日的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆