So youâre saying that a person could potentially submit a form towards the beginning or end of a day (which includes the device datetime in the form submission), and the present/past compare will sometimes show as âPastâ immediately after submission?
Not immediately after submission but it shows past when the date of the sheet owner (that is me) changes. So because of different countries, it shows past entry to a person because the date in my timezone is different.
Are you manipulating the date in any way in the sheet, or are you keeping it as the raw date from glide? Itâs my impression that dates that come from a form submission are the userâs date on the device and Iâve always assumed that the âis Todayâ function in glide would also use the same date/time of the userâs device, but I donât work with anything outside of my timezone, so I donât really know.
Dates that come from a submission is the deviceâs date, I can confirm this as I worked with a client 11 timezones away just yesterday. Tried to sort the form results by latest first but his submission is 11 hours behind me so didnât go up first as intended.
No manipulation. Itâs weird because users are reporting that they arenât seeing certain components which they should see if the date of last entry is today and thereâs no way for me to preview it from my desktop because when I preview, Glide takes my local time and compares it with âtodayâ
I guess thatâs not how I would expect it to work, unless the app keeps track of the sheet timezone somewhere internally for these checks, but still submits the device time through the datetime special value.
PS. The forum thinks I talk to much. This popped up as I was typing So if anybody else has ideasâŚ
Encourage everyone to get involved in the conversation
Youâve replied 3 times to @Manan_Mehta in this particular topic!
A great discussion involves many voices and perspectives. Can you get anybody else involved?
And donât forget, if youâd like to continue your conversation with this particular user at length outside of public view, send them a personal message.
I have compared 2 dates, both short format date only.
If I output them through the ITE they output as Date & Time. Am I missing something obvious to have them output in Date only?
Setting the format on date columns, or numeric columns is only cosmetic. The underlying values are still there. Youâll need a template column to âlock inâ whichever format you choose on the date column. Then have the If/Then return the template column value.
Perfect! Thank you. At least it wasnât too obvious
This still makes it difficult when trying to equate a date with a date with timestamp. Basically filtering all the timestamps on a given day⌠The simplest way I found is to test IF DateDiff = Round(datewithtimestamp - date - 0.5, 0) = 0
Does the âis withinâ option work for you when comparing 2 date columns?
The other way is to convert both of them to numerical values and compare them, I donât think you need to use Sheet formulas to do this.
Absolutely agree. Using spreadsheet formulas to compare or manipulate dates is akin to starting a fire by rubbing sticks together.