Announcements
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.
Please suggest us!
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.
Hi,
I think you have to convert the time to ToUniversalTime() and then find the difference.
Best Regards
PG
André Arnaud de Cal...
294,095
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator