在列表视图控件中设置日期格式 [英] format date in listview control

查看:54
本文介绍了在列表视图控件中设置日期格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

日期是这样的:2009年12月7日下午7:30:45

the date is like this :12/07/2009 7:30:45 PM

现在我需要像这样格式化日期

now i need to format the date like this

2009年11月11日上午7:30 我该如何做到这一点谢谢

Nov 11, 2009 7:30AM how can i achive this one thank you

推荐答案

尝试:

Eval("CreatedDate", "{0:MMM dd, yyyy hh:mm tt}")

来自: http://msdn.microsoft.com/zh-CN/library/8kb3ddd4.aspx

这篇关于在列表视图控件中设置日期格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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