如何在rdlc报告中显示打印日期和时间 [英] How to show print date and time in rdlc report

查看:162
本文介绍了如何在rdlc报告中显示打印日期和时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在rdlc报告中显示打印日期。我使用了一个文本框,在表达式中我使用了公式= CDate(Today())。ToString(MM / dd / yyyy)。没关系。但我需要日期和时间来表达。请帮助我。

How can I show print date in rdlc report. I have used a textbox and in expression I used the formula "=CDate(Today()).ToString("MM/dd/yyyy")". It is ok. But I need date and time bothe to show. Please help me.

推荐答案

使用此

Use this
Format(Now(),"MM/dd/yyyy h:mm:ss tt")


参考这个





http://dotnetblurb.wordpress.com/2012/05/22/rdlc-get-time-from-datetime-value-存储为文本/ [ ^ ]


=当前日期: - &格式(现在,dd / MM / yyyy ...... :mm tt)
="Current Date:-"&Format(Now,"dd/MM/yyyy hh:mm tt")


这篇关于如何在rdlc报告中显示打印日期和时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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