Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Problem with date, comparison and calculated field

$
0
0

Hi,

so I ran into a small problem with calculated fields and dates while trying to compare 2 dates with each other.

Explanation:

  • Date 1 (e.g. 29.09.2022) and date 2 (Today's date - calculated field with NOW()).
  • Another calculated field with option set should react as follows.
    • Yes:     if Date1    ==     Date2
    • No:      if Date1     !=     Date2

The problem is that this does not work as intended, because the comparison of the two dates also includes the time.

My question is, how can I manage the comparison of a set date and a calculated field with NOW() without the time?

 

Current:
If the date field of Field-Date1 is set to 09/29/2022 and today's Date2-NOW() is also at 09/29/2022, the option set is still set to No (Date1 not equal to Date2-NOW() ), which is odd.

PS: The idea is to avoid business rules or JS as much as possible


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images