简体   繁体   English

如何在 rdlc 报告表达式中更改时间格式 hh:mm

[英]how to change time format hh:mm in rdlc report expression

How to change time format hh:mm (military time format) in RDLC report expression if my dataset field data type is (string, time or TimeSpan).如果我的数据集字段数据类型是(字符串、时间或时间跨度),如何在 RDLC 报告表达式中更改时间格式hh:mm (军事时间格式)。

I am using this format =FORMAT(First(Fields.Time,Value, "dataset")."hh\.mm") but it is not working.我正在使用这种格式=FORMAT(First(Fields.Time,Value, "dataset")."hh\.mm")但它不起作用。

Please let me know how to solve this issue because I do not want to modify Stored Procedures.请让我知道如何解决此问题,因为我不想修改存储过程。

Your solution can save my time.您的解决方案可以节省我的时间。

Go to textbox properties and set format value to "HH:mm" Go 到文本框属性并将格式值设置为“HH:mm”

you can change it from Text Box Properties dialog:您可以从文本框属性对话框中更改它: 在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何更改 .net RDLC 报告中的日期格式? - How to Change Date Format in .net RDLC Report? DataStudio 和 SQL 将时间格式从数字更改为 hh:mm:ss - DataStudio and SQL change time format from numbers to hh:mm:ss 如何将SQL Server中特定列的时间格式从hhmmss更改为hh:mm:ss - How to change the format of time for a specific column in SQL Server from hhmmss to hh:mm:ss 如何在SQL Server中将时间从dd:hh:mm:ss格式化为仅hh:mm:ss? - How to format time from dd:hh:mm:ss to only hh:mm:ss in SQL server? 将格式为HH:MM AM / PM的时间转换为HH:MM:SS - Convert time with format HH:MM AM/PM to HH:MM:SS 如何在 MySQL 中将时间以秒为单位转换为 HH:MM:SS 格式? - How to convert time in seconds to HH:MM:SS format in MySQL? 如何将参数格式从DD / MM / YYY HH:MM; SS更改为DD / MM / YYYY - How to change Parameter format from DD/MM/YYY HH:MM;SS to DD/MM/YYYY FORMAT([Time], 'hh:mm') 返回 NULL - FORMAT([Time], 'hh:mm') returns NULL 在 SQL 服务器中将日期时间格式从 YYY-MM-DD HH:MM:SS 更改为 YYYY.MM.DD HH:MM:SS - Change date time format from YYY-MM-DD HH:MM:SS to YYYY.MM.DD HH:MM:SS in SQL Server 以HH:MM格式添加时间-SQL查询 - Adding Time in HH:MM Format -SQL Query
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM