Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Moru
on Oct 14, 2023
|
parent
|
context
|
favorite
| on:
Anything longer ago than yesterday should just say...
It matters a lot if you try to sort on that column
hanniabu
on Oct 14, 2023
|
next
[–]
We're talking about how it's displayed on the frontend, not how it's stored on the backend
Brian_K_White
on Oct 14, 2023
|
parent
|
next
[–]
One persons front end is another persons back end.
salawat
on Oct 14, 2023
|
root
|
parent
|
next
[–]
Especially if you're a proctologist.
NewJazz
on Oct 14, 2023
|
parent
|
prev
|
next
[–]
We use YYYY-MM-DD HH:mm:as on the frontend because it sorts lexicographically, which is useful for interactive tables.
graftak
on Oct 15, 2023
|
root
|
parent
|
next
[–]
There’s no need to have the sort value and the display value to be the same to allow sorting.
hanniabu
on Oct 15, 2023
|
root
|
parent
|
prev
|
next
[–]
You can use data attributes for that
thephyber
on Oct 14, 2023
|
prev
[–]
I think irrational’s point is that it’s trivial for any viewer, no matter the locality, to identify the date if there is no longer any ambiguity between date and month.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: