14 years ago
p3k dots

how reliable is java’s localization?

java’s DateFormat.getDateTimeInstance(DateFormat.DEFAULT, DateFormat.DEFAULT, Locale.GERMAN).format(new Date()) produces “22.01.2011 15:24:57” – without a comma or any other visible delimiter netween date and time.

looks awkward to me and i find it hardly legible.

i would write the string “22.01.2011, 15:24:57”, isn’t that at least much better?

(unfortunately, din 5008 does not say much about combining date and time formats... at least nothing i found.)