Date time, tomorrow, report

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Russ
    Senior Member
    • Feb 2022
    • 423

    Date time, tomorrow, report

    Hey community!

    Any thoughts on how to pull in the report, all deals with cXYZFeildTimeStampt = tomorrow?

    I guess I have to use formula, or 'having' expressions, any help us appreciated.

    I tried cXYZFeildTimeStampt is next 1 days but depending on the time of the day it pulls records for tomorrow and day after tomorrow

    Thank you!
  • lazovic
    Super Moderator
    • Jan 2022
    • 809

    #2
    Hi Russ,

    Please try to use the following filters in your report (in the filter section, add Complex Expression; instead of the Close Date field, select the field you need):

    Click image for larger version  Name:	image.png Views:	0 Size:	28.4 KB ID:	109179

    Formula scripts for these filters:
    Code:
    datetime\date(datetime\addDays(datetime\now(), 1))
    
    datetime\month(datetime\addDays(datetime\now(), 1))
    
    datetime\year(datetime\addDays(datetime\now(), 1))

    Comment

    • yuri
      Member
      • Mar 2014
      • 8440

      #3
      Note that the DATE won't apply the system time zone. It will give UTC tomorrow.

      I'd recommend not using DATE, but add two filters. "dateTimeField >= tomorrow_start" and "dateTimeField < day_after_tomorrow_start".

      tomorrow_start and day_after_tomorrow_start are supposed to be defined with a formula expression.
      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

      • Russ
        Senior Member
        • Feb 2022
        • 423

        #4
        thank you all!

        Comment

        Working...