Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/reporting-services/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reporting services 在SSRS中格式化日期时间_Reporting Services_Ssrs 2012 - Fatal编程技术网

Reporting services 在SSRS中格式化日期时间

Reporting services 在SSRS中格式化日期时间,reporting-services,ssrs-2012,Reporting Services,Ssrs 2012,有没有人尝试过在SSRS中格式化数据集指定的datetime =Format(Fields!Date.Value,"dsDateTime","dd/MM/yyyy hh:mm:ss") 此表达式不起作用。将格式添加到字段的format属性 您可能需要先选择“最新” =Format(CDate(Fields!Date.Value), "dd/MM/yyyy hh:mm.ss") 除了这两个建议之外,还有另一种方法 右键单击表达式>占位符属性>数字> 日期>然后选择所需的格式 但我仍然需

有没有人尝试过在SSRS中格式化数据集指定的datetime

=Format(Fields!Date.Value,"dsDateTime","dd/MM/yyyy     hh:mm:ss")

此表达式不起作用。

将格式添加到字段的format属性


您可能需要先选择“最新”

=Format(CDate(Fields!Date.Value), "dd/MM/yyyy hh:mm.ss")

除了这两个建议之外,还有另一种方法

右键单击表达式>占位符属性>数字> 日期>然后选择所需的格式


但我仍然需要指定数据集,否则会出现聚合函数规范问题。我也试过这个=格式(CDate(Fields!Date.Value,“dataset”),“dd/MM/yyyyy hh:MM:ss”),但尚未成功。来自sql的输入为2011年1月1日21:01:11,除非以此格式获取dd/MM/yyyy hh:MM:ss@好奇的家伙,非常直截了当!