I need to be able to filter for "yesterday between 3pm and midnight" plus "today midnight till 6am" how do I write formulas to accomplish this?
Slight change to the formula :
(
{table.datetime} >= cdatetime(year(currentdate-1),month(currentdate-1),day(currentdate-1),15,0,0)
and
{table.datetime} <= cdatetime(year(currentdate-1),month(currentdate-1),day(currentdate-1),23,59,59)
) OR
(
{table.datetime} >= cdatetime(year(currentdate),month(currentdate),day(currentdate),0,0,0)
and
{table.datetime} <= cdatetime(year(currentdate),month(currentdate),day(currentdate),6,0,0)
)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.