Bonjour,
J’ai une soucis lor de la creation de “Collection”
J’ai deuux champs avec date.
- START (Longue date et Time)
- DATE (long date sans time)
Dans la Collection, je souhait trier sur DATE et grouper sur DATE
Mais si je trie sur DATE , l’ordre est sur le numero jour de la date. 01, 02, 03
Si je trie sur START et groupe sur DATE, le tri est correct
Les deux champs sont de type DATE.
Comment trier sur DATE pour obtenir un tri correct comme sur START ?
Merci
Pouvez-vous me montrer votre configuration de filtres, groupes et tris svp?
Je pense que date sans time cause problème et semble considéré comme du simple texte.
Essayez de créer une colonne formater date pointant vers START en affichant date et temps. Utilisez cette colonne comme tri.
DATE et START sont des champs de type DATE
1 Like
En classic, j’utilisais “Start” , j’ai du migrer.
J’en profite pour séparer dates et heures, car j’ai besoin d’afficher l’heure seule.
SI le tri fonctionne correctement, je supprimerai “start”
Oui, je sais, mais essayez la colonne de formatage. J’ai déjà eu des problèmes comme ça.
Vous pouvez simplement utiliser une colonne format date pour n’afficher que l’heure. Cela vous permettra de n’avoir qu’une seule colonne date et heure et de séparer date/heure en deux colonnes format date.
A math column is going to be a lot more reliable across different regions and devices compared to a date format column.
Hi Jeff,
How to get the “start” day in MATH ?
Pour cela je dois extraire l’heure de “start”. En Glide, je ne vois pas comment faire.
C’est ce que j’essaie de faire, mais je tri de a nouvelle colonne (DATE) n’est pas correct.
Je crois qu’il s’agit d’un bug de chez Glide
The math column can be used to get a date formated differently using the same date value in another column. If you enter a simple value, such as ’date’ into the math formula and then replace it with your existing date column, it will then allow you to format that date with date only or time only.
The reason I suggest the math column instead of the date format column is because there are known issues with the date format column not working for everyone and also presents the date as text, so it can only be formatted alphabetically instead of sorting in date order. A math column should keep the date as an actual date which can be sorted as a date.
It also should be known that formatting a date column only changes it’s forward appearance. The underlying value is still a full date and time, and I believe sorting looks at that full date and time.
You should only need your Start date column and two math columns to present that date as date only and time only. Use the math columns any time you want to display that value.
You should be able to sort your collection using the Start column. As for grouping, you may need to add a template column to convert a formatted date or math column into text so so it only groups by the formatted value instead of the full underlying date value.
3 Likes
Thanks a lot Jeff.
The source (Time) is :
(in french)
Get hour :
In a MATH : Hour(Time) + (Minute(Time)/100)
ok; result is : 17,00 (with a comma)
Get date :
I can try this :
(day(date)*100000)+(month(date)*10000)+(year(date))
but, I can’t use this result.
Result : “142025”
I expect :

There certainly a beter way
Isn’t ?
Couldn’t you use the result here to sort?
The format date column might work for you now, but it’s known to be unreliable. However if you’re only displaying it as text, it might not be that much of a problem.
1 Like