The DateTime fields in my app show differently in different views.
In the table and detail views they show AM/PM in the form itโs 24 hour.
This is confusing when being filled in and particularly when being edited.
Can I do anything about this?
Thanks
@morgan Any thoughts?
Hi - Same here - I have 24 hour in the form view (what i want) but in the table view it shows as AM/PM. I also note if i concatenate an expressions to ensure I keep locale format (DD/MM/YY) if reverts back to AM/PM as well.
Any resolution on this?
Would be nice to force a time format as I have lots of people who set the AM / PM wrong and add an extra 12 hours to their log entries, so in 24 hour it a lot more obvious you have added 12 hours.
From Spreadsheet:
All my settings are UK. I presume that is why it uses AM/PM in the table and detail views, but in the form itโs 24 hour, which is a bit weird, and confusing.
Hi
I try to answer, you try to set formatted Spreadsheets using the TEXT format in the time table, I have tried this and it works, now my appsheet appears no longer at 00.00.00, now the time is in accordance with the data entered
Maybe it can be petrified
thank you
Hi
I had the same problem
But when I use time([Date Clm]) In a text Column Type it Show โ11:25:00 AMโ
so when I use CONCATENATE ([โฆ].[โฆ]) the same problem again like this โ09:57:53โ
then I add Text(Time([DAte Clm)) in the VC with CONCATENATE (โฆ)
this was the result
End: 12/22/2021, Sunday, 11:25:00 AM
Iโm having the same issue. Its AM/PM in Table view but in Form and Details view its 24h. Its rather confusing. My Locale is also set to the English (US).
Not sure if it matters, but the Google Sheets column is also set to AM/PM. Iโd like for it to be 12h in all views if possible.
Something new? To date I still have the same problem.
I think it is necessary to improve the presentation of dates in a uniform way, in all the views of the application and in all the devices that use the same app.
It should be possible to configure both the date format and the time format, for each field, or in UX> Options with the parameters DD / MMM / YY HH: MM: SS TT
@TalkNet_TechnoStore
Have you checked this page?
Thanks @LeventK! I recently got some help from @Suvrutt_Gurjar with this kind of issue:
At the time, I wondered how @Suvrutt knew to use text() to convert a time into a duration because thereโs nothing about it on the โDate and Time Expressionsโ page:
I realize that, strictly speaking, something like text( ***,โHH:MM:SSโ) is a text expression and not a time expression but, still, it would be nice if it could be mentioned or linked to from the โDate and Time Expressionsโ page. I found it to be essential for computing durations.
It would also be nice to have links to other time related expressions, such as EXTRACTTIMES() etc from this page.
Hi @Kirk_Masden,
I came to know about TEXT() function in the recent community post. Please refer below
Incidentally, @Fabian 's post on โRound /Ignore Secondsโ was around the same time. So I used the functions mentioned in TEXT() article while participating in @Fabian 's and subsequently your post.
I went ahead and added the Text function (edit: to the above article) to make it more discoverable. Itโs a brand new feature and we just announced it today!
Hi @Steve_Howard,
All the functions that you have added in TEXT() are very useful to get the desired combinations of date and time formats.
Thank you for this very useful addition to functions list.
I didnโt know that. Thanks a lot!
If we want to be sure that something is recognized as a duration (not a time), we need to add an extra 0 at the top: e.g. โ001:00:00โ + โ001:00:00โ will result in โ002:00:00โ. The TEXT() expression doesnโt seem to allow that, though. TEXT(โ001:00:00โ,โHHH:MM:SSโ) doesnโt produce โ001:00:00โ. I wonder if that capability could be added. Currently, if I have trouble with durations inside of an expression I can divide the expression into separate duration columns and then add those. It would be nice, though, if TEXT(โ001:00:00โ,โHHH:MM:SSโ) could produce โ001:00:00โ and thereby insure that the result is recognized as a duration.
I tried a workaround where I used CONCATENATE() to add a โ0โ to the top, but that didnโt work when I tried to add durations within a single expression.
I also tried the following:
Actuallyโand confusinglyโthe three leading digits to designate a Duration is only for literal Duration values in expressions. Thatโs why your CONCATENATE() expression doesnโt work: the result of the CONCATENATE() is a Text value even though it looks like a Duration value, and you canโt the add a Duration value to a Text value.
To convert a Time to a Duration, subtract a zero Time value (e.g., "00:00:00"
) from the Time to be converted:
([time] - "00:00:00")
@Steve has what looks to be the underlying answer.
If for whatever reason you really do need the text โ001:00:00โ, you can always use โ0HH:MM:SSโ. Anything thatโs not a special format character gets reproduced literally in the output.
I just realized I hadnโt documented, this, but thatโs now updated.
Thanks to both @Steve_Howard and @Steve Coiie. Iโm particularly happy to learn @Steve Coileโs leson about how to convert times to durations. I tried it out and it works well. Very good to know!
In my opinion the problem is not in the way of converting dates to text, but in how to choose the format in which the app presents them, that should be something eligible in the UX> OPTIONS Tab.
In the example of the image, the date is the result of a Reference, therefore its format cannot be modified, and instead of showing 1/9/2019 (September 1, 2019) it shows 9/1/2019 ( January 9, 2019). This format inversion for our date format, generates many complications, and it is necessary to create multiple virtual columns to display the dates in the correct format, or put the correct format in the Display property and display it correctly in the Field Title, What is very sloppy.
The same happens with the hours, in South America we use the 24-hour format and it is very confusing that the dates appear with the AM / PM format.
I solve the problem. It was in browser settings. Language which you use for display UI in browser - this language will affect to the AppSheet. Maybe it will be helpful for someone!
User | Count |
---|---|
18 | |
14 | |
11 | |
7 | |
4 |