4 ms·
> slight inconvenience for non-US citizens So, 96% of the world's population? And even in the US, science and engineering projects commonly use ISO dates. Go
by p-e-w 4y ago
> slight inconvenience for non-US citizens
So, 96% of the world's population?
And even in the US, science and engineering projects commonly use ISO dates.
Go's date formatting is as if a random American had taken a quick glance at a paper calendar pinned to the side of their fridge, and decided "yeah, let's do it like that".
- divan 4y agoMost people can remember "January 2nd" and don't think about US-date vs non-US date.
- deivid 4y agoOr "the second of January", as it may map better to your language ("El dos de Enero")
- fcarraldo 4y agoOr “le deuxième de janvier”, or “der zweite Januar”, or…
- moogly 4y agoWell... January 2nd? or January 2? or 2 January?
- divan 4y agoJust remember the date and use it in your date formatting string. If you want today to be printed as "December 11" put "January 2" in your Format() call. If you want "11 December", put "2 January". No need to remember any alphabet mappings anymore, it's way simpler.