Travis Griggs
08/31/2022, 5:06 PMlistOf("Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat")
I tried to use
DateFormatSymbols().shortWeekdays()
but that surprisingly returns an array of 8 values (so that Sunday can be accessed at 1 apparently). I could slice from 1..7, but that seems hacky. Is there a current idiomatic way to get a list of short weekday names?cd1
09/01/2022, 12:59 PMDayOfWeek.values().map { it.getDisplayName(TextStyle.SHORT, Locale.getDefault()) }