简体   繁体   English

SSRS日期格式和排序

[英]SSRS Date formatting and sorting

i'm having trouble on the formatting of my dates I have a report which has a date column and its coming up like 我在格式化日期时遇到麻烦,我有一个报告,其中有一个日期列,并且它像

1/4/2016 4:08:03PM and I would like it to be 4/1/2016. 1/4/2016 4:08:03 PM,我希望是2016年4月1日。

once I have done that I would like to sort it by the date range. 完成后,我想按日期范围对它进行排序。

Many thanks 非常感谢

To format the dates, go to the "details" row and right-click on the text box. 要设置日期格式,请转到“详细信息”行,然后右键单击文本框。 Go to Text Box Properties... -> Number -> Category . 转到文本框属性...- > 数字 -> 类别 Select "Date" and choose "Custom" format. 选择“日期”,然后选择“自定义”格式。 Provide "dd/MM/yyyy" in the text box that appears there. 在显示的文本框中提供“ dd / MM / yyyy”。

在此处输入图片说明

Voila! 瞧! Date has been formatted. 日期已格式化。

For sorting(which I am assuming is on a column in tablix), go to tablix properties and then to "Sorting". 对于排序(我假设它位于tablix中的列上),请转到tablix属性,然后转到“排序”。 Click on "Add" and specify the column on which you want to sort and then mention the "Order"(Ascending or Descending). 单击“添加”并指定要排序的列,然后提及“顺序”(升序或降序)。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM