Hi @0800-grizzly,
All non date types in date fields and formula fields are sorted as strings.
If you want to sort by European format, you need to use slash-separated dates in date fields
Alternatively, you could separate the fields for display and sorting.
When you use DATETIME_FORMAT(), the formula converts your date to a text string, so it is no longer considered a date by Airtable, even though it looks like one.
If your date field is a date-only field (no time), is there a reason you cannot group directly by the date field and set the date format to European? It is not exactly the same, as there will be slashes instead of dots. But the order will be the way you like.

If you want to use your existing formula field, you should be able to group by the original date field. If your original date field includes a time, you can use the formula DATESTR() to get a text string that will sort/group correctly with only the date. If you have timezone issues, you can nest SET_TIMEZONE() inside DATESTR().
When you use DATETIME_FORMAT(), the formula converts your date to a text string, so it is no longer considered a date by Airtable, even though it looks like one.
If your date field is a date-only field (no time), is there a reason you cannot group directly by the date field and set the date format to European? It is not exactly the same, as there will be slashes instead of dots. But the order will be the way you like.

If you want to use your existing formula field, you should be able to group by the original date field. If your original date field includes a time, you can use the formula DATESTR() to get a text string that will sort/group correctly with only the date. If you have timezone issues, you can nest SET_TIMEZONE() inside DATESTR().
Thank you!
I had no clue DATETIME_FORMAT makes the date a string instead, thought it was just a way to format any dates. Need to look through the rest of my stuff to find other instances of this
.
Unfortunately my original date-field includes time, and needs to stay that way. Would be handy to be able to group/sort on only date, although there's time, but that's for the wish list.
While DATESTR indeed works for grouping, the ISO format of YYYY-MM-DD is very un-intuitive for us here in the Nordics.
I also tried DATETIME_PARSE (+ format and/or locale) to see if that could be tricked into formatting, but apparently it won't parse a true date-field.
For now I settled for a cheap workaround. I just "echo" the original date-field in a new column (just the column name as the formula), and have its formatting set to "European".
But sorting this so that we can use a DD.MM.YYYY format would make it so more intuitive for quick eyes used to read dates this way
. Any further thoughts on this, other than ask Airtable to provide it as a native format?
Rgds,
Björn
Hi @0800-grizzly,
All non date types in date fields and formula fields are sorted as strings.
If you want to sort by European format, you need to use slash-separated dates in date fields
Alternatively, you could separate the fields for display and sorting.
Thanks!
Björn