DateTime in SSRS

↘锁芯ラ 提交于 2019-12-13 19:16:43

问题


I would like to get datetime(ex: 2013-09-20 21:32:49.000) from SQL and display only date(ex: 2013-09-20) in SSRS.

Could anyone let me know the syntax for doing this. I tried below syntax but no luck

=First(Fields!Start_date.Value, "Database_Name")

回答1:


Method 1: You can format date in textbox properties. Right click on textbox and go to textbox properties.

Method 2: Set the expression something like

=FormatDateTime(Fields!Start_date.Value, DateFormat.ShortDate)



来源:https://stackoverflow.com/questions/19692641/datetime-in-ssrs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!