如何使用C#在水晶报表中将日期时间格式转换为日期格式? [英] How to convert datetime format to date format in crystal report using C#?

查看:546
本文介绍了如何使用C#在水晶报表中将日期时间格式转换为日期格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在工作c#窗体应用程序,并在水晶报告。我从数据库中获取日期datetime格式,但我喜欢显示日期只在报告中,任何公式字段在水晶报告帮助我的这个问题。谢谢

解决方案

在水晶报表公式域日期函数aavailable中有传递您的日期时间格式,因为您将获得仅日期



例如: Date({MyTable.dte_QDate})


i am working c# windows form application and also in crystal report.i am retriving the date from database in datetime format but i like display date only in report,Is any formula field in crystal report help for me for this problem.Thanks in Advance.

解决方案

In crystal report formulafield date function aavailable there pass your date-time format in that You Will get the Date only here

Example: Date({MyTable.dte_QDate})

这篇关于如何使用C#在水晶报表中将日期时间格式转换为日期格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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