在Calendar Extender中格式化日期 [英] Formatting date in Calendar Extender
本文介绍了在Calendar Extender中格式化日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的网页上有一个日历控件,它以6/28/2011格式显示日期,我希望在2011年7月28日或2011年7月28日显示它,我该如何格式化?
I have a calendar control in my web page,it shows date in this format 6/28/2011,i want to display it inn July/28/2011 or 28/July/2011, how can i format it??
推荐答案
您可以使用格式
属性更改格式。
< a href =http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Calendar/Calendar.aspx>日历演示 [ ^ ]
标准日期和时间格式字符串 [ ^ ] < br $> b $ b
CalendarExtender并获得正确的信息日期格式 [ ^ ]
免费附件
ASP.NET AJAX日历扩展程序 - 提示与技巧 [ ^ ]
You can use theFormat
property to change the format.
Calendar Demonstration[^]
Standard Date and Time Format Strings[^]
CalendarExtender and getting the correct date format[^]
Free attachment
ASP.NET AJAX Calendar Extender – Tips and Tricks[^]
poda ....... .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .........
poda..............................................................................................................................................................................................................................................................................................................................................................................
尝试使用Format属性
OR
更改SelectionChanged事件中的格式
Try to use Format property
OR
change format in SelectionChanged event
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
................
}
这篇关于在Calendar Extender中格式化日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文