The "getWeekday" method can be used to create labels for a given time range taking into account weekday names and holidays.