SSRS DateTime UTC格式

时间:2019-03-05 13:44:32

标签: sql sql-server datetime format ssrs-2008

存储过程在utc中返回日期时间,例如: enter image description here

在SSRS报告中,我用掩码“ dd.MM.yyyy hh:mm:ss”格式化了日期。但是时间在改变 enter image description here

我认为这是因为ssrs将日期转换为dd / MM / yyyy hh:mm:ss PM(AM)格式。我该如何从sp normaly返回时间?

1 个答案:

答案 0 :(得分:4)

使用HH表示24小时格式。 hh是12小时格式。因此,您的新格式为:

dd.MM.yyyy HH:mm:ss