TODAY()

Hi @Harshamaddur I have retrieved this post: UTC & Time Zone Conversion
Maybe it can help you.

1 Like

Joel-1ada,
Thanks for replying. I tried UTC & Time Zone Conversion. But, it didn't help.

1 Like

try using this =DATE(YEAR(NOW()-(7/24)),MONTH(NOW()-(7/24)),DAY(NOW()-(7/24))) instead of today. 7/24 is to account for UTC to PST conversion so adjust accordingly. Add it as extra column in filter table and use that in the filter formula, and make sure the dates formatted as dates and not auto formatted

2 Likes

@Harshamaddur I think this has to do with when a new calc is triggered. I don’t think the tables recalc every few minutes just in case there’s a formula like today() in them.

I think your filter formula made the computation at the moment you hit the enter key. Then, it won’t re-calculate until some data in one of the tables changes.

Instead, you could do this exact same formula in the app rather than the table. Save the formula to a data cell on an app screen. When the screen loads, the calculation will be performed and you get the freshest data.

1 Like

=DATE(YEAR(NOW()-(7/24)),MONTH(NOW()-(7/24)),DAY(NOW()-(7/24))) I am confused.

  1. Is this a single formula or 3 different formulas? Because you used '=' only behind 'DATE' not behind 'MONTH' & 'DAY'
  2. Do I have to type YEAR, MONTH AND DAY as it is or do I have to type 2020 for YEAR, July for MONTH, 24 for DAY?
  3. Do I have to use brackets (paranthesis) around 7/24. Last time I didn't use brackets. (In my case it is 5.5/24)
  4. Also, IST is 5:30 hours ahead. Should I use 5.30/24 or 5:30/24 or 5.5/24.

Regards
Harsha

1 Like
  1. It's a single formula
  2. Type YEAR, MONTH, and DAY. They are Honeycode functions. You can see all the Honeycode functions here.
  3. No, you don't need the parenthesis around the division.
  4. You will want to use NOW()+5.5/24.

I think @AndrewB is right, though, in pointing out the formulas will not recalculate as the time changes, causing the results to become stale over time. If you don't want to move the formulas into an app, you could try updating them at 12:01 am everyday using an automation.

2 Likes

Thank you and @AndrewB for the detailed explanation. I will try this and let you know. I am happy to be in this community of such a helpful souls.

5 Likes

Its single formula, you should be able to just copy paste it. I think you should use 5.5/24

As to recalculation, I use it both in back end and app more in app in app it recalculates, back end well now I need to check that lol

1 Like


Yep it recalculates as the time changes, this is old table opened today

1 Like

In work order sheet, I changed the dates to 26, 27, & 28 as follows

Then, I went to summary sheet and applied the formula as follows. But it is showing error

So for some reason it only works if you create extra column with date image
and then do filtering

1 Like

It looks like you're missing a quote (") in your B2 equation between the two closing parens at the very end.

1 Like

I added quotes, before year and between parenthesis in the end, as follows. Still showing error.

Hi @Harshamaddur, try removing the quote character before the year as you currently have 3 quotes in your formula, not two or four. The remaining two quotes seem valid to me.

Let us know what kind of result you get.

2 Likes

I used the following formulae for "Today's row, upcoming row and previous row" respectively. at 12:05, July 29th IST

=FILTER(Workorders,"Workorders[Date]=DATE(YEAR(NOW()+5.5/24),MONTH(NOW()+5.5/24),DAY(NOW()+5.5/24))")

=FILTER(Workorders,"Workorders[Date]>DATE(YEAR(NOW()+5.5/24),MONTH(NOW()+5.5/24),DAY(NOW()+5.5/24))")

=FILTER(Workorders,"Workorders[Date]<DATE(YEAR(NOW()+5.5/24),MONTH(NOW()+5.5/24),DAY(NOW()+5.5/24))")

Dates in work order sheet are 28th, 29th & 30th July. In Summary sheet it showing no of workorders (in workorders) column as per UTC date. Not as per IST date.

Even though these formulae not showing error, they are not serving the purpose.

To explain more: As dates work orders sheet are 28, 29 & 30th. In summary sheet Today, upcoming & previous should show one work order each.

Table 1


Table 2
image

formulas:
B2=FILTER(Table1,"Table1[Date]>Table1[Column2]")
B3=FILTER(Table1,"Table1[Date]<Table1[Column2]")
B4=FILTER(Table1,"Table1[Date]=Table1[Column2]")
B5=FILTER(Table1,"Table1[Date]<>""""")

2 Likes

Thank you @julsi. Love seeing users engage with other users!

@Harshamaddur I've just tested the approach that @Julsi outlined above and it appears to work. Could you confirm that it works for you as well? If not, I'll follow-up with someone on our sheets team to assist.

1 Like

Julsi,
You did it, you did it. Thank you so much.
It works as needed. It is showing as per IST now. Thanks again. I had to change - to + before (5.5/24) for IST.
I would like to thank others also for the effort they put in.
Regards
Harsha

1 Like

lol Glad I was able to help

2 Likes

What is the difference between

=DATE(YEAR(NOW()+(5.5/24)),MONTH(NOW()+(5.5/24)),DAY(NOW()+(5.5/24)))

and

=(TODAY()+(5.5/24))

I tried using

=(TODAY()+(5.5/24))

in column 2 of Table 1. But, it is showing UTC time.