[英]Removing the time on Field object in Crystal Report using vb.net
In my Database i use mysql i have a value of 7/25/2015 在我的数据库中,我使用mysql的值是7/25/2015
My report code: 我的报告代码:
rptmain.Subreports("CrystalReport1.rpt").SetDataSource(dtincom)
the problem when i am displaying the report it looks like this 当我显示报告时的问题看起来像这样
7/25/2015 12:00:00 AM 2015/7/25上午12:00:00
which is not what i want. 这不是我想要的。 i want the original value inside my database is this possible without doing such code? 我想要我的数据库中的原始值是否可以在不执行此类代码的情况下实现? please take a look of the picture below. 请看下面的图片。
ToText({DataTable1.date_conduct}, "MM-dd-yyyy")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.