简体   繁体   English

在SSRS中,如何使用StartDate参数过滤,其中格式不包含AM或PM

[英]In SSRS how can I filter using a StartDate parameter where the format does not include AM or PM

I am trying to use a Start Date parameter in a tablix filter. 我正在尝试在Tablix过滤器中使用开始日期参数。 The problem is the incoming data is in the following format, 6/06/2013 6:00:00, and does not include AM or PM - which is causing the filter not to work properly. 问题是传入数据采用以下格式,即6/06/2013 6:00:00,并且不包含AM或PM-这导致过滤器无法正常工作。

Any suggestions? 有什么建议么? Thanks in advance 提前致谢

If you speak about AX: 如果您谈论AX:

You can use this function: 您可以使用此功能:

=Microsoft.Dynamics.Framework.Reports.DataMethodUtility.ConvertUtcToAxUserTimeZoneForUser(Parameters!AX_CompanyName.Value, Parameters!AX_UserContext.Value, Fields!StartDate, "t", Parameters!AX_RenderingCulture.Value)

Fields!StartDate is your DATE field i never use "t", if it doesn't work try "tt", it will return if your time is "AM" or "PM" Fields!StartDate是您的DATE字段,我从不使用“ t”,如果它不起作用,请尝试“ tt”,如果您的时间是“ AM”或“ PM”,它将返回

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

相关问题 带有参数 @startdate 的 SSRS - SSRS with a parameter @startdate 在where子句SSRS中过滤的参数 - Parameter to filter in the where clause SSRS 如何从AM / PM格式的VARCHAR转换为UTC? - How can I convert to UTC from VARCHAR that's in AM/PM format? 如何更新我使用同一个表过滤数据的表中的列? - How can I update a column in a table where I am using the same table to filter the data? 当日期为 YYYY-MM-DD 格式时,如何使用 SSRS 仅在月份进行过滤? - How can I use SSRS to filter just on month when the date is in YYYY-MM-DD format? MySQL-如何使用AM / PM对日期格式进行排序 - Mysql - how to sort the date format with am/pm 如何更改“ WHERE startdate> = date”子句的值并获取日期范围的数据? - How can I change the value for “WHERE startdate >= date” clause and get data for a range of dates? 如何使用SSRS是或否参数过滤SQL查询 - How to filter SQL query by using SSRS Yes or No Parameter (在参数中传递“all”?)| 我如何制作参数? 在 WHERE 过滤器中返回 ALL 在 sql 请求中 - (pass "all" in parameter ?) | how can I make parameter ? in WHERE filter to be a return of ALL in sql request 如何从日期时间格式的字段中显示AM或PM的时间? - How do i show just the time with AM or PM from a field that is a datetime format?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM