export function getFormattedDate(dateStr: string): string {
  const d = new Date(dateStr + 'T00:00:00')
  const days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
  return days[d.getDay()] + ', ' + d.toLocaleDateString()
}

export function formatScorePercent(score: number | null | undefined): string {
  if (score === null || score === undefined) {
    return '-'
  }
  return (score * 100).toFixed(1) + '%'
}
