[英]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.