简体   繁体   中英

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. 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.

Any suggestions? Thanks in advance

If you speak about 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"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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