Help needed: why this complex expression on date calculation not working?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chrisjiang
    Member
    • Dec 2018
    • 88

    Help needed: why this complex expression on date calculation not working?

    I want to create a reminder to assigned user before "endDate" and I tried this complex expression. But it does not work ("endDate" is a field of Date, not Datettime), why?

    And it seems this does not work only with the "equals" choice, it works well with "less than or equal" etc.

    Please help. Thanks.

    Chris

  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    Hi Chris,

    Instead of "DATE" function try w/o a function.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment


    • chrisjiang
      chrisjiang commented
      Editing a comment
      If I do not try Complex expression, there is no choice on choosing an Exact match of, say,  3 days before field "endDate". It will come with a range of period instead of a specific date.
  • Maximus
    Senior Member
    • Nov 2018
    • 2731

    #3
    Hello Chris,
    try to write formula this way "datetime\date(datetime\addDays(datetime\today (), 2));

    Comment

    • chrisjiang
      Member
      • Dec 2018
      • 88

      #4
      Originally posted by Maximus
      Hello Chris,
      try to write formula this way "datetime\date(datetime\addDays(datetime\today (), 2));
      Hi Maximus,

      This does not work.

      Thanks anyway.

      Comment

      • chrisjiang
        Member
        • Dec 2018
        • 88

        #5
        Originally posted by yurikuzn
        Hi Chris,

        Instead of "DATE" function try w/o a function.
        Can you please explain more in detail? Thanks so much!

        Comment

        • chrisjiang
          Member
          • Dec 2018
          • 88

          #6
          Originally posted by yurikuzn
          Hi Chris,

          Instead of "DATE" function try w/o a function.
          After trying finally your way works, thanks so much!!

          I would like to attach the following screen shot for others' reference:

          Comment

          Working...