Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

How to Find Day Difference between today's date and Date field in SSRS

(0) ShareShare
ReportReport
Posted on by 351

Hi All,

We are finding a day difference between today's date and a date field which is in CRM entity. But I'm getting wrong count of days.

I have also checked value of both today's date and field value:

Today's Date: 9/18/2020 12:00:00 AM

CRM field value: 18.09.2020

=IIF(IsNothing(First(Fields!new_activedate.Value, "EntityDataSet")), 0, DateDiff("d", First(Fields!new_activedate.Value, "EntityDataSet"), Today))

Our CRM Time Zone is GMT 01:00 Amsterdam, Berlin, Bern, Rome and system time zone is IST. Below is my date format in CRM which we need.

DateFormat.PNG

Please suggest us!

  • Suggested answer
    Mahadeo Matre Profile Picture
    17,021 on at
    RE: How to Find Day Difference between today's date and Date field in SSRS

    Hi..

    Looks like today's date and activedate are in different format / timezone. First you need to convert both dates into same timezone and then take difference.

  • Pankaj Gogoi Profile Picture
    3,177 on at
    RE: How to Find Day Difference between today's date and Date field in SSRS

    Hi,

    I think you have to convert the time to ToUniversalTime() and then find the difference.

    Best Regards

    PG

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,095 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans