web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

DateTime Dialog Filtre SSRS Report filter

(0) ShareShare
ReportReport
Posted on by 65

Hi,

I have a problem with the DateTime Type parameter in the contract class, when I select a value in the DateTime filter, in the DP class it retrieves the selected date minus one day


Thanks much.

3678.A.png0317.B.png6403.C.png

I have the same question (0)
  • nmaenpaa Profile Picture
    101,166 Moderator on at

    It's a time zone difference. Your input field handles timezone differently than your infolog printing.

    18.09.2020 00:00 in france is 17.09.2020 22:00 UTC.

    So the input handling seems to work as expected.

    Same applies to your data, if some datetime in your data shows up as 18.09.2020 00:00 in your time zone, it means that the actual timestamp is 17.09.2020 22:00 UTC.

    Does your report not work as expected?

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi,

    The date is being displayed in UTC-8 format. I think that's the setting on the Dev system. For the report filtering it should work fine though.

    Please check this link

  • AlaaBa Profile Picture
    65 on at

    Thank you for your answer,

    it works fine for date filters, but dateTime No.

    I checked the system, it is well configured,

  • nmaenpaa Profile Picture
    101,166 Moderator on at

    Currently we only see how the filter field is implemented (looks correct) and an infolog output (most likely correct but impossible to say without seeing the code that produces it). We don't know how you filter records based on the filter fields.

    Please share more details about your situation. Such as all code that is using these date fields to filter records.

    Also please share the code of your infolog (in your screenshot).

  • AlaaBa Profile Picture
    65 on at

    I displayed the value retrieved by contract class.

    Here is the code that executes the message.

  • AlaaBa Profile Picture
    65 on at

    [

       SysEntryPointAttribute

    ]

    public void processReport()

    {

       RetailStatementJour    retailStatementJour;

       contract               = this.parmDataContract() as PMsalesVoucherContract;

       throw error(strFmt("%1", contract.parmDateTimeFrom() ));

    }

    [

       DataMemberAttribute('datetimeFrom'),

       SysOperationLabelAttribute(literalstr("@SYS35905")),

       SysOperationDisplayOrderAttribute("3")

    ]

    public fromDateTime parmDateTimeFrom(fromDateTime _datetimeFrom = datetimeFrom)

    {

       datetimeFrom = _datetimeFrom;

       return datetimeFrom;

    }

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi,

    Where are you using the date time value? Retail statement Jour has two fields date and time.

  • nmaenpaa Profile Picture
    101,166 Moderator on at

    When you share code, could you please click "Use rich text formatting" -> "Insert" -> "Code". This way it's easier to read. Thanks!

    Anyway, your current code is throwing an error so the report processing is halted. Perhaps that explains why it doesn't work for you.

    I don't see any code that would filter any records - did you forget to share that part?

  • AlaaBa Profile Picture
    65 on at

    Hi,

    it is a filter at the level of the RetailStatementJour table on the TransFormDate and TransFormTime fields

  • nmaenpaa Profile Picture
    101,166 Moderator on at

    Good to know. Could you now share your code? Assuming you still need help with your functionality.

    Thanks!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 669 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 471 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 423 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans