我使用的是 Winform(C#) 和 RDLC MySQL。我尝试仅在 Tablex 中显示日期。
但这种日期格式也有时间。如何去掉时间。
我的表情是,..
=Fields!date.Value
请参阅下面我的报告。
提前致谢?
我在表达式中尝试了 =Fields!date.Value.ToString("dd/MM/yyyy") 但它通过错误,..
错误 1 验证时发生错误。 HRESULT = '8000000A'
您可以使用格式化日期时间 http://msdn.microsoft.com/en-us/library/microsoft.visualbasic.strings.formatdatetime.aspx method:
=FormatDateTime(Fields!date.Value, DateFormat.ShortDate)
Or you can set the formatting in the properties window:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)